summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-06-28 09:08:51 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-06-28 08:21:44 +0000
commit1632d6380cb905c3d3c022079e703abf7ce14f5e (patch)
treed5ccccc984058c60d82d1898a6057eef8c00456b /svx
parent979c4a4140d6b86a4219b3daf1c3fbd9f8730459 (diff)
ODP export: add embedded pdf support
This is basically the draw shape equivalent of SwGrfNode::GetReplacementGrfObj(), that already had explicit code for PDF purposes. Change-Id: I00a619082f59a3e377d45c3a59615cadae295586 Reviewed-on: https://gerrit.libreoffice.org/26724 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdograf.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx
index 93a662ba487e..2dc637106cb2 100644
--- a/svx/source/svdraw/svdograf.cxx
+++ b/svx/source/svdraw/svdograf.cxx
@@ -443,6 +443,9 @@ const GraphicObject* SdrGrafObj::GetReplacementGraphicObject() const
{
const_cast< SdrGrafObj* >(this)->mpReplacementGraphic = new GraphicObject(rSvgDataPtr->getReplacement());
}
+ else if (pGraphic->GetGraphic().getPdfData().hasElements())
+ // Replacement graphic for metafile + PDF is just the metafile.
+ const_cast<SdrGrafObj*>(this)->mpReplacementGraphic = new GraphicObject(pGraphic->GetGraphic().GetGDIMetaFile());
}
return mpReplacementGraphic;