Bug 44225 - text outside contour when rotating
Summary: text outside contour when rotating
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All All
: low minor
Assignee: Not Assigned
Depends on:
Blocks: Shapes Object-Rotation
  Show dependency treegraph
Reported: 2011-12-28 09:00 UTC by ridi
Modified: 2023-11-27 16:08 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

a polygon with text inside (8.83 KB, application/vnd.oasis.opendocument.graphics)
2011-12-28 09:00 UTC, ridi
ZIP containing ODG, PDFs, and screenshot of various rotation effects. (67.91 KB, application/zip)
2013-11-16 11:04 UTC, Owen Genat (retired)
gif animation demonstrating the bug (1.35 MB, image/gif)
2021-11-19 16:36 UTC, sailfox

Note You need to log in before you can comment on or make changes to this bug.
Description ridi 2011-12-28 09:00:25 UTC
Created attachment 54907 [details]
a polygon with text inside

Create a polygon in LOdev Draw
Set rotation angle in "position and size..." to 0
Enable "adjust to contour" in the "text..." context menu
Select "text" and insert some text: it is correctly positioned inside the polygon.
Now selct modify / rotate in the main menu
If "edit points" is enabled the curser shows rotation symbol but moves the points
If "edit points" is deselected the polygon is rotated but the text moves out of the polygon and even out of the page.
One time LOdev was even crashing when trying the procedure above
Comment 1 retired 2013-09-01 12:06:40 UTC
Is this bug still valid / reproducible with the latest LO release from http://www.libreoffice.org/download/ ?
Comment 2 ridi 2013-09-03 17:29:35 UTC
I installed version of  LO an could reproduce the main part of the bug ("edit points" deselected). Both loading the attachment test.odg and creating a new polygon with LO shows the same behaviour.

 Von: "bugzilla-daemon@freedesktop.org" <bugzilla-daemon@freedesktop.org>
An: ma_ridinger@yahoo.de 
Gesendet: 14:06 Sonntag, 1.September 2013
Betreff: [Bug 44225] text outside contour when rotating

James  changed bug 44225 

Comment # 1 on bug 44225 from James  
Is this bug still valid / reproducible with the latest LO release from http://www.libreoffice.org/download/ ?
 You are receiving this mail because: 
	* You reported the bug.
Comment 3 Owen Genat (retired) 2013-11-16 11:04:42 UTC
Created attachment 89312 [details]
ZIP containing ODG, PDFs, and screenshot of various rotation effects.

I am adding further example files to this bug that illustrate the problem with the text at various degrees of rotation. Confirmed under Crunchbang 11 x86_64 running v4.1.3.2.

The problem is the initial view and any export to PDF made from this view. Saving the ODG, exiting, and re-opening the file appears to rectify the rotation problem with the text, so at least there is a workaround. The "initial" screenshot and PDF show what the viewer sees at the time of the rotation i.e., the problem. The "subsequent" PDF (and opening the ODG now) show the expected view.

It looks to me as though the anchor point for the text is set at top left, and it attempts to rotate around this rather than using the same anchor point as the polygon.
Comment 4 QA Administrators 2014-06-01 21:30:11 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2014-07-08 17:17:55 UTC Comment hidden (obsolete)
Comment 6 ridi 2015-04-21 09:36:04 UTC
Bug can be reproduced with LO All necessary information is already available.
Comment 7 Matthew Francis 2015-04-24 10:35:15 UTC
Confirmed on latest 5.0 master

This is specific to "adjust to contour" - otherwise the text rotates as expected

(the minor issue about the rotation symbol display should probably be split onto a separate bug)
Comment 8 Matthew Francis 2015-04-24 10:37:10 UTC
Also occurs in OOo 3.3.0
-> Version: Inherited from OOo
Comment 9 QA Administrators 2016-09-20 09:32:44 UTC Comment hidden (obsolete)
Comment 10 ridi 2016-09-23 16:46:10 UTC
just tested with LO 5.2.1 on Ubuntu 16.04 (created from empty page):

The minor part ("curser shows rotation symbol but moves the points") seems to be solved: The rotation symbol is shown but now you really can move the point on a circular path only. This makes sense in the rotation mode.

The main part ("text moves out of the polygon") did not change. The text still moves out of the polygon and out of the page.
Comment 11 Xisco Faulí 2017-09-29 08:49:11 UTC Comment hidden (obsolete)
Comment 12 sailfox 2017-10-23 20:55:34 UTC Comment hidden (obsolete)
Comment 13 QA Administrators 2019-10-22 02:31:10 UTC Comment hidden (obsolete)
Comment 14 sailfox 2019-10-25 19:40:32 UTC Comment hidden (obsolete)
Comment 15 QA Administrators 2021-10-25 03:56:13 UTC Comment hidden (obsolete)
Comment 16 sailfox 2021-11-19 16:36:10 UTC
Created attachment 176365 [details]
gif animation demonstrating the bug
Comment 17 sailfox 2021-11-19 16:48:51 UTC
Bug still has not been fixed in LO Draw 7.2.0 AppImage (see attachment gif animation with ubuntu 20.04)
Comment 18 QA Administrators 2023-11-20 03:11:45 UTC Comment hidden (obsolete)
Comment 19 sailfox 2023-11-27 16:08:20 UTC
I can confirm that the issue persists in version 7.6.3.