From 21c41659969cba4dc50d3208fb1736032c971661 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 15 Nov 2018 14:27:28 +0000 Subject: Resolves: tdf#121415 font tab page has no name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I3ca6a8b58163fe5c84a306dd80dd7171f8540299 Reviewed-on: https://gerrit.libreoffice.org/63425 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sfx2/source/dialog/dinfdlg.cxx | 3 ++- sfx2/source/dialog/tabdlg.cxx | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'sfx2/source/dialog') diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index 9199e25ba2e5..70f2a77e9116 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -1179,7 +1179,8 @@ void SfxDocumentInfoDialog::PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) void SfxDocumentInfoDialog::AddFontTabPage() { - AddTabPage( FONT_PAGE_ID, SfxResId( STR_FONT_TABPAGE ), SfxDocumentFontsPage::Create); + AddTabPage(FONT_PAGE_ID, SfxResId(STR_FONT_TABPAGE), SfxDocumentFontsPage::Create); + SetPageName(FONT_PAGE_ID , "font"); } // class CustomPropertiesYesNoButton ------------------------------------- diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx index 04e6f394d06e..1d5b3ecc3e8e 100644 --- a/sfx2/source/dialog/tabdlg.cxx +++ b/sfx2/source/dialog/tabdlg.cxx @@ -1363,6 +1363,10 @@ const sal_uInt16* SfxTabDialog::GetInputRanges( const SfxItemPool& rPool ) return m_pRanges.get(); } +void SfxTabDialog::SetPageName(sal_uInt16 nPageId, const OString& rName) const +{ + m_pTabCtrl->SetPageName(nPageId, rName); +} void SfxTabDialog::SetInputSet( const SfxItemSet* pInSet ) -- cgit