Kaydet (Commit) bd2c14ec authored tarafından Caolán McNamara's avatar Caolán McNamara

we have to have all tabpages in all modes now

Change-Id: I05a587d4b0556cb9eda49583441b3f57d923a800
üst b6b71d74
......@@ -727,21 +727,16 @@ 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())
{
for ( sal_uInt16 n=0; n < m_pTabCtrl->GetPageCount(); ++n)
//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);
TabPage* pTabPage = m_pTabCtrl->GetTabPage(nPageId);
if (!pTabPage)
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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment