Related tdf#72966 Provide replacement graphic also for metafiles
With this, SVM files are still written to ODF, but accompanied by a replacement png graphic. Change-Id: I2c949f100dd5197a10c741baa42ea740f3a1415a Reviewed-on: https://gerrit.libreoffice.org/45567 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
This commit is contained in:
parent
f7c841f56f
commit
6b3cc69fd2
1 changed files with 3 additions and 2 deletions
|
@ -447,9 +447,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)
|
||||
|
|
Loading…
Reference in a new issue