summaryrefslogtreecommitdiff
path: root/sw/qa/extras/uiwriter/uiwriter.cxx
diff options
context:
space:
mode:
authorRegina Henschel <rb.henschel@t-online.de>2021-07-11 15:31:58 +0200
committerRegina Henschel <rb.henschel@t-online.de>2021-07-13 10:56:31 +0200
commitb33634a5c07c8f7032967d8e939100a50e0152ae (patch)
treeb6235c7e330d0cf3e6588494ef8704b3bec6db19 /sw/qa/extras/uiwriter/uiwriter.cxx
parentf9982c24066d6dd2f938cc20176af0f196bc018f (diff)
tdf#141786 correct position of child elements in group
...in export to docx. Rotated child elements need a correction to the position values, because LO uses left/top of snap rectangle as position, but Word uses left/top of unrotated shape. For the group itself it is done in DocxSdrExport::startDMLAnchorInline. But child elements' position is exported in DrawingML::WriteShapeTransformation. And there this correction was missing. Position is relative to anchor in Writer and relative to group in Word. The adaption is contained in WriteShapeTransformation. But PolyPolygon and Connector have no explicit rotation and therefore they do not use DrawingML::WriteShapeTransformation but call directly DrawingML::WriteTransformation. So they missed this adaption. I have added the adapation directly to these shapes. Unittest testDmlTextshapeB in sw-ooxmlexport6: I have adapted the values. The position of the connectors relative to the group is better now. You see this, if you compare it with a screenshot of the original file in Word. The handles of the connectors are still wrong and the whole group is still shifted. The patch does not fix the wrong position of rotated legacy ovals, because that error exists independent of groups. Change-Id: Iaf843dcf04bac596427dd35ccfa6cd20e3a4cdc8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118748 Tested-by: Jenkins Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Diffstat (limited to 'sw/qa/extras/uiwriter/uiwriter.cxx')
0 files changed, 0 insertions, 0 deletions