Kaydet (Commit) e8d1110d authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1209186 Logically dead code

since 44cfc7cb

Change-Id: Ia7b6451acdeaaef57e9f4b1fe285d1b1b57595f6
üst be756e2c
...@@ -1395,7 +1395,6 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) ...@@ -1395,7 +1395,6 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet )
bool bFoundBitmap = false; bool bFoundBitmap = false;
bool bFoundMetafile = false; bool bFoundMetafile = false;
bool bFoundObjNoLine = false;
bool bFoundObjNoArea = false; bool bFoundObjNoArea = false;
bool bFoundNoGraphicObj = false; bool bFoundNoGraphicObj = false;
bool bFoundAny = false; bool bFoundAny = false;
...@@ -1472,10 +1471,6 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) ...@@ -1472,10 +1471,6 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet )
if( bFoundObjNoArea ) // #i25616# if( bFoundObjNoArea ) // #i25616#
rSet.DisableItem( SID_ATTRIBUTES_AREA ); rSet.DisableItem( SID_ATTRIBUTES_AREA );
// Disable menuitem for line-dialog
if( bFoundObjNoLine )
rSet.DisableItem( SID_ATTRIBUTES_LINE );
if( bFoundBitmap && !bFoundMetafile && !bFoundNoGraphicObj ) // only Bitmaps marked if( bFoundBitmap && !bFoundMetafile && !bFoundNoGraphicObj ) // only Bitmaps marked
rSet.DisableItem( SID_CONVERT_TO_BITMAP ); rSet.DisableItem( SID_CONVERT_TO_BITMAP );
else if( !bFoundBitmap && bFoundMetafile && !bFoundNoGraphicObj ) // only Metafiles marked else if( !bFoundBitmap && bFoundMetafile && !bFoundNoGraphicObj ) // only Metafiles marked
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment