diff options
Diffstat (limited to 'sd/source/ui/view/drviews7.cxx')
-rwxr-xr-x | sd/source/ui/view/drviews7.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sd/source/ui/view/drviews7.cxx b/sd/source/ui/view/drviews7.cxx index cc7ba64df08d..cb1423cc359d 100755 --- a/sd/source/ui/view/drviews7.cxx +++ b/sd/source/ui/view/drviews7.cxx @@ -1426,11 +1426,17 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) bFoundMetafile = true; break; case OBJ_GRAF : + { bSingleGraphicSelected = nMarkCount == 1; - switch ( ((SdrGrafObj*)pObj)->GetGraphicType() ) + const SdrGrafObj* pSdrGrafObj = static_cast< const SdrGrafObj* >(pObj); + switch(pSdrGrafObj->GetGraphicType()) { case GRAPHIC_BITMAP : bFoundBitmap = sal_True; + if(pSdrGrafObj->isEmbeddedSvg()) + { + bFoundMetafile = true; + } break; case GRAPHIC_GDIMETAFILE : bFoundMetafile = sal_True; @@ -1442,6 +1448,7 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) // #i25616# bFoundObjNoLine = sal_True; // #i25616# bFoundObjNoArea = sal_True; break; + } case OBJ_TABLE: bFoundTable = true; break; |