diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2011-04-04 17:05:53 +0200 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2011-04-04 17:05:53 +0200 |
commit | 86e7ed8c72184b7a04b836848743979aa3f5fd3d (patch) | |
tree | 2e2fb8d98f9e4b4e35c56a8fb309bedf73450397 | |
parent | 776de14da77af214201eba74e53ec5b1896a114b (diff) |
masterfix DEV300: #i10000# smoketest assertion fix
Notes
Notes:
split repo tag: libs-core_ooo/DEV300_m106
-rw-r--r-- | framework/source/uielement/menubarmanager.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx index a74fbabb271e..9df04fa17ab4 100644 --- a/framework/source/uielement/menubarmanager.cxx +++ b/framework/source/uielement/menubarmanager.cxx @@ -1813,14 +1813,10 @@ void MenuBarManager::FillMenu( pMenu->SetItemBits( nId, nBits ); } - if ( bShow ) - pMenu->ShowItem( nId ); - else + if ( !bShow ) pMenu->HideItem( nId ); - if ( bEnabled) - pMenu->EnableItem( nId, sal_True ); - else + if ( !bEnabled) pMenu->EnableItem( nId, sal_False ); if ( xIndexContainer.is() ) |