diff options
-rw-r--r-- | svx/source/svdraw/svdograf.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx index ea8701929a88..3eb3abfe0953 100644 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -438,9 +438,10 @@ const GraphicObject* SdrGrafObj::GetReplacementGraphicObject() const { const_cast< SdrGrafObj* >(this)->mpReplacementGraphic = new GraphicObject(rVectorGraphicDataPtr->getReplacement()); } - else if (pGraphic->GetGraphic().getPdfData().hasElements()) + else if (pGraphic->GetGraphic().getPdfData().hasElements() + || pGraphic->GetGraphic().GetType() == GraphicType::GdiMetafile) { - // Replacement graphic for bitmap + PDF is just the bitmap. + // Replacement graphic for PDF and metafiles is just the bitmap. const_cast<SdrGrafObj*>(this)->mpReplacementGraphic = new GraphicObject(pGraphic->GetGraphic().GetBitmapEx()); } if (mpReplacementGraphic) |