Commits

Anonymous committed 315be82

masterfix DEV300: #i10000# smoketest assertion fix

Comments (0)

Files changed (1)

framework/source/uielement/menubarmanager.cxx

                         pMenu->SetItemBits( nId, nBits );
                     }
 		    
-                    if ( bShow )
-		                pMenu->ShowItem( nId );
-		            else
-                        pMenu->HideItem( nId );
+                    if ( !bShow )
+		                pMenu->HideItem( nId );
                     
-                    if ( bEnabled)
-                        pMenu->EnableItem( nId, sal_True );
-                    else
+                    if ( !bEnabled)
                         pMenu->EnableItem( nId, sal_False );
                     
                     if ( xIndexContainer.is() )