Kaydet (Commit) 1745af7d authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

Set button size before updating the images

So that the sub-toolbar controller will pick the
right image size.

Change-Id: I70b642ac84377b461a001ef11f551a5e1448c0f1
üst 89cc8445
...@@ -325,6 +325,8 @@ void ToolBarManager::RefreshImages() ...@@ -325,6 +325,8 @@ void ToolBarManager::RefreshImages()
SolarMutexGuard g; SolarMutexGuard g;
bool bBigImages( SvtMiscOptions().AreCurrentSymbolsLarge() ); bool bBigImages( SvtMiscOptions().AreCurrentSymbolsLarge() );
m_pToolBar->SetToolboxButtonSize( bBigImages ? TOOLBOX_BUTTONSIZE_LARGE : TOOLBOX_BUTTONSIZE_SMALL );
for ( sal_uInt16 nPos = 0; nPos < m_pToolBar->GetItemCount(); nPos++ ) for ( sal_uInt16 nPos = 0; nPos < m_pToolBar->GetItemCount(); nPos++ )
{ {
sal_uInt16 nId( m_pToolBar->GetItemId( nPos ) ); sal_uInt16 nId( m_pToolBar->GetItemId( nPos ) );
...@@ -355,7 +357,6 @@ void ToolBarManager::RefreshImages() ...@@ -355,7 +357,6 @@ void ToolBarManager::RefreshImages()
} }
} }
m_pToolBar->SetToolboxButtonSize( bBigImages ? TOOLBOX_BUTTONSIZE_LARGE : TOOLBOX_BUTTONSIZE_SMALL );
::Size aSize = m_pToolBar->CalcWindowSizePixel(); ::Size aSize = m_pToolBar->CalcWindowSizePixel();
m_pToolBar->SetOutputSizePixel( aSize ); m_pToolBar->SetOutputSizePixel( aSize );
} }
......
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