summaryrefslogtreecommitdiff
path: root/oox/Module_oox.mk
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-04-19 20:27:32 +0200
committerMiklos Vajna <vmiklos@collabora.com>2021-04-20 09:01:27 +0200
commit4cb71fefc61d9015a0142f3a4fdafc5250913f2c (patch)
tree48f608e87c63c6dffc941842eb4269c098db8bd0 /oox/Module_oox.mk
parent028f47cc490374264a6648a7682ff6234195b380 (diff)
tdf#122962 DOCX drawingML export: fix polygon shape in group shape
Regression from commit cfb5b20cdc230320ff9f864d1cfd81aaea221da0 (DocxAttributeOutput::OutputFlyFrame_Impl: enable DML export by default, 2013-12-18), there were two problems here. First, <a:chOff> and <a:chExt> was not written for docx group shapes. This can be done for toplevel shapes just by writing what would be the shape position and size (but for docx, we don't write the size). Second, (poly)polygon shapes used the bounding rectangle of their points as size, which doesn't necessarily match the shape size. Given that the group shape is meant to simply contain its children in LibreOffice (and not have an own size), switch to using the UNO API for polygon shapes as well, that way the two sizes will always match. Change-Id: I4406ddefe5f6105aa2fc74d805359add452936bb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114305 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'oox/Module_oox.mk')
-rw-r--r--oox/Module_oox.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/oox/Module_oox.mk b/oox/Module_oox.mk
index ed85ee68da2d..75ef85051f85 100644
--- a/oox/Module_oox.mk
+++ b/oox/Module_oox.mk
@@ -29,6 +29,7 @@ $(eval $(call gb_Module_add_check_targets,oox,\
CppunitTest_oox_drawingml \
CppunitTest_oox_vml \
CppunitTest_oox_shape \
+ CppunitTest_oox_export \
))
# vim: set noet sw=4 ts=4: