Bug 125634 - Object not rotated, though it's corners visualized as rotated
Summary: Object not rotated, though it's corners visualized as rotated
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, implementationError
Depends on:
Blocks: Textbox
  Show dependency treegraph
 
Reported: 2019-06-02 07:55 UTC by opensuse.lietuviu.kalba
Modified: 2025-08-10 06:49 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
screenshot (52.02 KB, image/png)
2019-06-02 07:55 UTC, opensuse.lietuviu.kalba
Details
ODT document for testing (9.22 KB, application/vnd.oasis.opendocument.text)
2019-06-02 07:56 UTC, opensuse.lietuviu.kalba
Details
DOCX for testing (4.96 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2019-06-02 07:56 UTC, opensuse.lietuviu.kalba
Details
Bug still in 25.8.0.2 (157.11 KB, image/png)
2025-08-10 06:49 UTC, opensuse.lietuviu.kalba
Details

Note You need to log in before you can comment on or make changes to this bug.
Description opensuse.lietuviu.kalba 2019-06-02 07:55:33 UTC
Created attachment 151841 [details]
screenshot

I copy-pasted object (text box) from DOCX. Seems originally it should be rotated, but it is not. However if I click on object, I see that corners mismatch with object: corners are rotated.

LibreOffice Writer
Versija: 6.2.3.2
Darinio identifikatorius: aecc05fe267cc68dde00352a451aa867b3b546ac
Procesoriaus gijos: 4; OS:Linux 4.4; Sąsajos pateikimas: numatytasis; VCL: kde4; 
Lokalė: lt-LT (lt_LT.UTF-8); UI-Language: lt-LT
Calc: threaded

See attachments.
Comment 1 opensuse.lietuviu.kalba 2019-06-02 07:56:04 UTC
Created attachment 151842 [details]
ODT document for testing
Comment 2 opensuse.lietuviu.kalba 2019-06-02 07:56:25 UTC
Created attachment 151843 [details]
DOCX for testing
Comment 3 opensuse.lietuviu.kalba 2019-06-02 08:04:52 UTC
I see fragment "rotation:270" (that seems not fully implemented) in word/document.xml from DOCX archive:

<v:rect id="shape_0" ID="Text Box 2" stroked="f" style="position:absolute;margin-left:-23.15pt;margin-top:98.3pt;width:109.5pt;height:41.85pt;rotation:270;mso-position-horizontal-relative:margin" wp14:anchorId="4F098A0E">
Comment 4 Durgapriyanka 2019-06-07 21:27:12 UTC
thank you for reporting the bug.

in LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4

The text doesn't appear in the box and the corners are not visualized as rotated.The box can only be extended or reduced in its size.

In Version: 6.3.0.0.alpha0+
Build ID: b6b28931435e44aca92b8c0e1659f701e3ed1a87
CPU threads: 2; OS: Windows 6.1; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2019-01-30_06:57:04
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded

The corners mismatch with the object and it can only be extended or reduced. The corners are not visualized as rotated.
Comment 5 Buovjaga 2019-08-25 17:20:09 UTC
Bibisected on Linux 44max to 9835a5823e0f559aabbc0e15ea126c82229c4bc7
"sw textboxes: reimplement ODF import/export

Turns out that for normal TextFrames and rectangular drawinglayer
shapes, the engine is written in ODF implicitly. Use the same trick to
describe if the shape content should be rendered by SW or editeng."

Before this commit, the ODT shows the box as rotated so the text is vertical.

Adding Cc: to Miklos Vajna
Comment 6 Miklos Vajna 2019-08-26 20:47:23 UTC
The "Writer textbox" concept supports complex geometry (rounded corners, etc) with complex content (e.g. tables, table of contents, etc). They do not support rotated text.

The reason the ODF sample "works" is because it imports the text as a simple text, without a textbox. In this particular case it provides better results, but if the content would be complex, then the new behavior would be better, and the old one would be bad.

So it seems to me this is rather an implementation error / missing feature in the docx importer and Writer (lack of rotated text on shapes: used to loose both rotated text and complex geometry, still looses rotated text) than a regression; adjusting keywords accordingly.
Comment 7 QA Administrators 2023-08-10 03:05:35 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2025-08-10 03:10:28 UTC Comment hidden (obsolete)
Comment 9 opensuse.lietuviu.kalba 2025-08-10 06:21:41 UTC
Bug still exist in:
Version: 24.8.6.2 (X86_64) / LibreOffice Community
Build ID: 480(Build:2)
CPU threads: 4; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: lt-LT (lt_LT.UTF-8); UI: lt-LT
Calc: threaded
Comment 10 opensuse.lietuviu.kalba 2025-08-10 06:45:47 UTC
Bug also still exist in

Version: 25.8.0.2 (X86_64)
Build ID: 80a8bc2ef75d415a197e282da0ebf917315d5e24
CPU threads: 4; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: lt-LT (lt_LT.UTF-8); UI: lt-LT
Calc: threaded
Comment 11 opensuse.lietuviu.kalba 2025-08-10 06:49:24 UTC
Created attachment 202263 [details]
Bug still in 25.8.0.2