Bug 154556

Summary: When the angle of an object changes, the size of the object changes
Product: LibreOffice Reporter: Robert <dev>
Component: DrawAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: enhancement CC: buzea.bogdan, rb.henschel
Priority: medium    
Version: 7.5.2.2 release   
Hardware: ARM   
OS: macOS (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 114610    
Attachments: illustration of rectangles related to a shape

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