diff options
Diffstat (limited to 'sfx2/source/appl/appserv.cxx')
-rw-r--r-- | sfx2/source/appl/appserv.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index 6bf964c8a98a..2a95052903f2 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -1198,9 +1198,10 @@ void SfxApplication::MiscState_Impl(SfxItemSet &rSet) if ( xLayoutManager.is() ) { - bool bState = true; - bState = xLayoutManager->getElement( "private:resource/menubar/menubar" ).is() - && xLayoutManager->isElementVisible( "private:resource/menubar/menubar" ); + const bool bState + = xLayoutManager->getElement("private:resource/menubar/menubar").is() + && xLayoutManager->isElementVisible( + "private:resource/menubar/menubar"); SfxBoolItem aItem( SID_MENUBAR, bState ); rSet.Put( aItem ); |