summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-30 12:00:01 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-10-30 12:00:01 +0000
commitbd2c14ec78a7549d4a19738154cdd5ea890f61c4 (patch)
tree12a760bd0a63ff4e6dddfb77d34d7a8eb2ed95f0 /sfx2/source
parentb6b71d74fddca5e260ab2a3d6307603f5b469108 (diff)
we have to have all tabpages in all modes now
Change-Id: I05a587d4b0556cb9eda49583441b3f57d923a800
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/dialog/tabdlg.cxx17
1 files changed, 6 insertions, 11 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index b137cee62372..eda237570f9a 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -727,19 +727,14 @@ sal_Bool SfxTabDialog::IsApplyButtonEnabled() const
void SfxTabDialog::Start_Impl()
{
- //If we're layout enabled, we need to force all tabs to
- //exist to get overall optimal size for dialog
- if (isLayoutEnabled())
+ //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)
{
- for ( sal_uInt16 n=0; n < m_pTabCtrl->GetPageCount(); ++n)
+ sal_uInt16 nPageId = m_pTabCtrl->GetPageId(n);
+ if (!m_pTabCtrl->GetTabPage(nPageId))
{
- sal_uInt16 nPageId = m_pTabCtrl->GetPageId(n);
- TabPage* pTabPage = m_pTabCtrl->GetTabPage(nPageId);
- if (!pTabPage)
- {
- m_pTabCtrl->SetCurPageId(nPageId);
- ActivatePageHdl(m_pTabCtrl);
- }
+ m_pTabCtrl->SetCurPageId(nPageId);
+ ActivatePageHdl(m_pTabCtrl);
}
}