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

            Bug ID: 149538
           Summary: OOXML bad import, export and rendering for property
                    "upright"
           Product: LibreOffice
           Version: 7.4.0.0 alpha0+ Master
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Impress
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: rb.hensc...@t-online.de

Created attachment 180698
  --> https://bugs.documentfoundation.org/attachment.cgi?id=180698&action=edit
shape with property "upright" set

Open attached file in PowerPoint. Rotate the shape and make sure, that the text
remains upright. The OOXML property "upright" works in PowerPoint too, but
PowerPoint has no UI for it (at least I found none). I have got the shape with
copy&paste from a text document to the presentation.

Open the attached file in LibreOffice. Notice, that the text in sheared. This
shearing happens, because the shape rotation is stored to property
"TextPreRotateAngle". But that property is designed for the writing directions
"vert" and "vert270" and because in rendering it is applied before scaling, it
may only be used with 90deg and 270deg (and 0deg and 180deg). Any other angle
produces shearing. And because "TextPreRotateAngle" is for writing direction,
it is the wrong property anyway. The property for text area rotation is
"TextRotateAngle".

Resave the file without any changes with file format pptx. Open the resaved
file in PowerPoint. At a first glance it looks correct. But rotate the shape.
The text will rotate together with the shape. The property "upright" is lost.
That is an export error. If you look into the InteroperGrabBag you see that
"upright" has been read on import.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to