From 4214ff23ad8f7247c8da8cddbf78bd75e98f17eb Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Thu, 4 Apr 2013 21:23:50 +0200 Subject: [PATCH] fdo#37758: Really set the toolbar as hidden. Change-Id: If0cdf2fabb680f8dee811411f601b2954d29da58 --- framework/source/layoutmanager/toolbarlayoutmanager.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) 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 )