[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - sfx2/source
Muhammet Kara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jun 17 20:53:16 UTC 2019
sfx2/source/doc/SfxRedactionHelper.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 5c81e2cad01b4854f8a2a20a7391e2177493f344
Author: Muhammet Kara <muhammet.kara at collabora.com>
AuthorDate: Tue Apr 16 21:54:34 2019 +0300
Commit: Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Mon Jun 17 22:52:30 2019 +0200
Protect page position during redaction
Users might accidentally move the main shape of
the page being redacted. Let's prevent that.
Change-Id: Ic0f3c2c819d1f974d203fa5fd70d57e5545ba8ef
Reviewed-on: https://gerrit.libreoffice.org/70839
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar at collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/74218
Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>
Tested-by: Muhammet Kara <muhammet.kara at collabora.com>
diff --git a/sfx2/source/doc/SfxRedactionHelper.cxx b/sfx2/source/doc/SfxRedactionHelper.cxx
index a117bc14123b..732b56092da2 100644
--- a/sfx2/source/doc/SfxRedactionHelper.cxx
+++ b/sfx2/source/doc/SfxRedactionHelper.cxx
@@ -138,6 +138,8 @@ void SfxRedactionHelper::addPagesToDraw(uno::Reference<XComponent>& xComponent,
xFactory->createInstance("com.sun.star.drawing.GraphicObjectShape"), uno::UNO_QUERY);
uno::Reference<beans::XPropertySet> xShapeProperySet(xShape, uno::UNO_QUERY);
xShapeProperySet->setPropertyValue("Graphic", uno::Any(xGraph));
+ xShapeProperySet->setPropertyValue("MoveProtect", uno::Any(true));
+ xShapeProperySet->setPropertyValue("SizeProtect", uno::Any(true));
// Set size and position
xShape->setSize(
More information about the Libreoffice-commits
mailing list