framework/source/layoutmanager/toolbarlayoutmanager.cxx | 9 +++++++++ 1 file changed, 9 insertions(+)
New commits: commit 4214ff23ad8f7247c8da8cddbf78bd75e98f17eb Author: Jan Holesovsky <ke...@suse.cz> Date: Thu Apr 4 21:23:50 2013 +0200 fdo#37758: Really set the toolbar as hidden. Change-Id: If0cdf2fabb680f8dee811411f601b2954d29da58 diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx index cd6c484..dd14cec 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 ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits