summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/source/layoutmanager/layoutmanager.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx
index af6cb6179231..ad8187d310bf 100644
--- a/framework/source/layoutmanager/layoutmanager.cxx
+++ b/framework/source/layoutmanager/layoutmanager.cxx
@@ -752,7 +752,6 @@ void LayoutManager::implts_updateUIElementsVisibleState( bool bSetVisible )
MenuBarManager* pInplaceMenuBar( m_pInplaceMenuBar );
aWriteLock.clear();
- bool bMustDoLayout(false);
if (( xMenuBar.is() || xInplaceMenuBar.is() ) && xContainerWindow.is() )
{
SolarMutexGuard aGuard;
@@ -773,10 +772,10 @@ void LayoutManager::implts_updateUIElementsVisibleState( bool bSetVisible )
pSysWindow->SetMenuBar(pMenuBar, m_xFrame);
else
pSysWindow->SetMenuBar( 0 );
- bMustDoLayout = true;
}
}
+ bool bMustDoLayout;
// Hide/show the statusbar according to bSetVisible
if ( bSetVisible )
bMustDoLayout = !implts_showStatusBar();