[Libreoffice-bugs] [Bug 127439] FIlESAVE Text orientation "vert" is transformed into a text area rotation with change from docx to odt

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Oct 2 07:37:55 UTC 2019


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

Regina Henschel <rb.henschel at t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Regina Henschel <rb.henschel at t-online.de> ---
It has the same root cause as bug 127785.

The import writes a 90° rotation to TextPreRotateAngle. This leads to matrix
order scale-matrix after rotation-matrix in
createViewIndependentPrimitive2DSequence(). The scale factors are calculated as
length of column vector in decompose(). In case of 90° or -90° the wrong matrix
order leads to an exchange of x-scaling factor and y-scaling factor in
decompose(). So the wrong matrix order produces an implicit exchange of width
and height of the text box in rendering the docx file. So this implicit
exchange produces the same result as an explicit exchange, which I would
expect.

But when the file is then saved as odt, the TextPreRotateAngle is saved as
draw:text-rotate-angle attribute, same as a TextRotateAngle would be. When the
odt-file is opened, then the angle goes to TextRotateAngle. And for this, the
matrix-order is rotation-matrix after scale-matrix. Thus decompose() produces
correct width and height and so you see the rotated text box.

*** This bug has been marked as a duplicate of bug 127785 ***

-- 
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/20191002/0e7fbe2b/attachment-0001.html>


More information about the Libreoffice-bugs mailing list