Bug 127457 - FILEOPEN PPTX Vertical text rotation overwrites textbox rotation
Summary: FILEOPEN PPTX Vertical text rotation overwrites textbox rotation
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
(earliest affected)
4.1 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: filter:pptx
Depends on:
Blocks: PPTX
  Show dependency treegraph
Reported: 2019-09-09 21:37 UTC by Regina Henschel
Modified: 2020-06-24 22:53 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

TextBoxRotation20°_plus_VerticalText270°.pxx demonstrates the error (73.93 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2019-09-09 21:37 UTC, Regina Henschel

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2019-09-09 21:37:31 UTC
Created attachment 154064 [details]
TextBoxRotation20°_plus_VerticalText270°.pxx demonstrates the error

Open attached document. It has on the left side a shape with text. The text is vertical by the option "Rotate all text 270°". The textbox itseslf has a rotation of 20°. The red rectangle indicates the position of the textbox. On the right side is a screenshot of how it looks in PowerPoint.

Error: The textbox is not rotated.
The reason is in https://opengrok.libreoffice.org/xref/core/oox/source/drawingml/textbodypropertiescontext.cxx?r=e7c0bc48#110 where the value is simple assigned to moRotation instead of being added, and so overwrites the textbox rotation from #97.

[There are a lot of errors in that area, therefore I will not fix it immediately but together with the other problems.]
Comment 1 Xisco Faulí 2019-09-18 09:44:07 UTC
Also reproduced in

Version (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)