summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorDinesh Patil <dinesh.patil@synerzip.com>2014-05-16 16:05:47 +0530
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-05-20 11:33:07 +0200
commitdf973e6e950591c0c36f2bbbb761e43ec23b9964 (patch)
treec92b83539d9c7b13d66250be79b6862fff6d25b2 /oox
parent423921b085de43f53e42f957889dd96378d2c3c4 (diff)
fdo#78658 Corruption: lockedCanvas tag is missing from RT file
While export, locked Canvas is missing and drawing is exported inside textbox. However a locked Canvas has to be exported inside a text-box and drawing should fall under locked Canvas for the RT file to work in MS Office 2010. Reviewed on: https://gerrit.libreoffice.org/9377 Change-Id: Iea2c411302b552db18527001cc4c6d0290085afe
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/shape.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index 33c846cd5d92..ca42d4a5d9f1 100644
--- a/oox/source/drawingml/shape.cxx
+++ b/oox/source/drawingml/shape.cxx
@@ -962,6 +962,12 @@ Reference< XShape > Shape::createAndInsert(
}
}
+ else if( mbLockedCanvas )
+ {
+ //If we have aServiceName as "com.sun.star.drawing.GroupShape" and lockedCanvas
+ putPropertyToGrabBag( "LockedCanvas", Any( true ) );
+ }
+
// These can have a custom geometry, so position should be set here,
// after creation but before custom shape handling, using the position
// we got from the caller.