diff options
-rw-r--r-- | framework/source/layoutmanager/toolbarlayoutmanager.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx index cd6c484cd8dc..dd14cec2a070 100644 --- a/framework/source/layoutmanager/toolbarlayoutmanager.cxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.cxx @@ -676,7 +676,16 @@ void ToolbarLayoutManager::setVisible( bool bVisible ) { bool bSetVisible( pIter->m_bVisible & bVisible ); if ( !bSetVisible ) + { pWindow->Hide(); + + UIElement aUIElement( *pIter ); + if ( !aUIElement.m_bFloating ) + implts_setLayoutDirty(); + + aUIElement.m_bVisible = false; + implts_setToolbar( aUIElement ); + } else { if ( pIter->m_bFloating ) |