[Libreoffice-bugs] [Bug 141463] New: FILEOPEN DOCX Scale of group is wrongly applied to the childelements in the group

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Apr 2 16:41:33 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=141463

            Bug ID: 141463
           Summary: FILEOPEN DOCX Scale of group is wrongly applied to the
                    childelements in the group
           Product: LibreOffice
           Version: 7.2.0.0.alpha0+ Master
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: rb.henschel at t-online.de
            Blocks: 136328

Created attachment 170922
  --> https://bugs.documentfoundation.org/attachment.cgi?id=170922&action=edit
Scaling a group with transformed child elements

Open attached document. It contains a group with two child elements. One is
flipped and the other is rotated. There is screenshot where the group should
be. The screenshot looks gray, because I have reduced its contrast.

One place were an error happens is statement
aTransformation = aParentTransformation*aTransformation;
in shape.cxx

https://opengrok.libreoffice.org/xref/core/oox/source/drawingml/shape.cxx?r=3e4eb070#821

Here aParentTransformation is a scaling matrix from the group and
aTransformation contains the rotation of the green shape. When they are
multiplied, they introduce a skew. Word cannot handle skew at all, but
LibreOffice can. Therefore the scaling has to be applied  before rotation.

There are surely other error in addition, but this one I could identify.

Look at it with 96dpi, then the screenshots have the correct size and position
and you can see, were the shapes should be.


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=136328
[Bug 136328] [META] DOCX Grouped shape related issues
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210402/8f815ee6/attachment.htm>


More information about the Libreoffice-bugs mailing list