[Libreoffice-commits] core.git: sd/source
Tomaž Vajngerl (via logerrit)
logerrit at kemper.freedesktop.org
Sun Oct 18 19:23:12 UTC 2020
sd/source/filter/pdf/sdpdffilter.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 2a1b5af875d8ee84fec18c781020d836c4650dc9
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Thu Oct 15 12:53:18 2020 +0200
Commit: Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Sun Oct 18 21:22:27 2020 +0200
sd: protect size, position when opening with PDFium import filter
This is to prevent that the PDF graphics can be moved and/or
resized.
Change-Id: Ica4276e93e268bb2ec4a0aae0e50620a09c538f6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104370
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
diff --git a/sd/source/filter/pdf/sdpdffilter.cxx b/sd/source/filter/pdf/sdpdffilter.cxx
index 5e190f8a0117..e903c015d4be 100644
--- a/sd/source/filter/pdf/sdpdffilter.cxx
+++ b/sd/source/filter/pdf/sdpdffilter.cxx
@@ -83,6 +83,9 @@ bool SdPdfFilter::Import()
SdrGrafObj* pSdrGrafObj = new SdrGrafObj(pPage->getSdrModelFromSdrPage(), rGraphic,
tools::Rectangle(Point(), aSizeHMM));
+ pSdrGrafObj->SetResizeProtect(true);
+ pSdrGrafObj->SetMoveProtect(true);
+
pPage->InsertObject(pSdrGrafObj);
for (auto const& rPDFAnnotation : rPDFGraphicResult.GetAnnotations())
More information about the Libreoffice-commits
mailing list