summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-12-17 09:27:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-12-17 09:35:25 +0000
commit126ec8f96680ad5222b10a4bf6aac9ff8b58fe88 (patch)
treea05262944461878bd2bb289e0100c69d0950331b /sfx2/source
parentcbcb304b8be5d0824872625b5373729a79042f0f (diff)
Move forcing existence of tabpages to TabControl::GetOptimalSize
rather than just for SfxTabDialog, do it for all TabControls Change-Id: I29a19c51c7ce3baec428df716e2ee3595e496c39
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/dialog/tabdlg.cxx11
1 files changed, 0 insertions, 11 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index a7574c573d5a..f3514ed437ac 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -727,17 +727,6 @@ sal_Bool SfxTabDialog::IsApplyButtonEnabled() const
void SfxTabDialog::Start_Impl()
{
- //We need to force all tabs to exist to get overall optimal size for dialog
- for (sal_uInt16 n=0; n < m_pTabCtrl->GetPageCount(); ++n)
- {
- sal_uInt16 nPageId = m_pTabCtrl->GetPageId(n);
- if (!m_pTabCtrl->GetTabPage(nPageId))
- {
- m_pTabCtrl->SetCurPageId(nPageId);
- ActivatePageHdl(m_pTabCtrl);
- }
- }
-
DBG_ASSERT( pImpl->pData->Count() == m_pTabCtrl->GetPageCount(), "not all pages registered" );
sal_uInt16 nActPage = m_pTabCtrl->GetPageId( 0 );