Bug 154556 - When the angle of an object changes, the size of the object changes
Summary: When the angle of an object changes, the size of the object changes
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.5.2.2 release
Hardware: ARM macOS (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Object-Rotation
  Show dependency treegraph
 
Reported: 2023-04-02 05:13 UTC by Robert
Modified: 2023-07-28 20:27 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
illustration of rectangles related to a shape (30.54 KB, application/vnd.oasis.opendocument.graphics)
2023-04-02 18:19 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert 2023-04-02 05:13:29 UTC
Description:
if you create an object like a line ,rectangle 
and then do a rotation of that object, the width and height will change on property objet box

for exemple an rectangle of 100x100 with an angle of 0 degree

will have 141x141 if you set an angle of 49 degree





Steps to Reproduce:
1.display property window
2 create a rectangle 
3. set the width and the height to 100 with an angle 0 degree
4 change the angle to 49

Actual Results:
width and the height to 141

Expected Results:
width and the height to 100


Reproducible: Always


User Profile Reset: No

Additional Info:
having unchanged width and the height after an object rotation
Comment 1 Regina Henschel 2023-04-02 18:19:13 UTC
There exists three kind of rectangles for a shape.
1. 'logical' rectangle. That is given by "Size" and "Position" in the API. It does not change, when a shape is transformed.
2. 'snap' rectangle. That is given by 'FrameRect' in the API.
3. 'bounding box' rectangle. That is given by 'BoundRect' in the API. It includes thick lines for example.

See attachment for 'snap' rectangle and 'bounding box'.

The 'Position and Size' dialog gives access to the 'snap' rectangle. It is not a bug.

We could consider to give access to the 'logical' rectangle in addition. But that would be an enhancement request. I have changed the 'Importance' field accordingly.
Comment 2 Regina Henschel 2023-04-02 18:19:51 UTC
Created attachment 186412 [details]
illustration of rectangles related to a shape