Bug 135034 - Bbox should rotate with rotated groups (like it does for single objects)
Summary: Bbox should rotate with rotated groups (like it does for single objects)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
(earliest affected)
3.4.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Object-Rotation
  Show dependency treegraph
Reported: 2020-07-22 03:29 UTC by Jim Avera
Modified: 2023-04-02 06:04 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

screenshot showing rotated and not-rotated bounding boxes (52.10 KB, image/png)
2020-07-22 03:31 UTC, Jim Avera

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Avera 2020-07-22 03:29:29 UTC
Grouped objects can not be resized independently along each axis if the group has been rotated.  The bounding-box shown when a group is selected is always aligned with the paper (i.e. not rotated with the object); using the side resize handles therefore affects rotated objects in both directions (from the perspective of the original axes).

This is different than what happens with single ungrouped objects.   

If a single object is rotated, its bbox rotates along with it, so the side resize handles still manipulate the object along it's original (now rotated) axes.  IMO this is almost always what the user wants, but there might be use-cases for the unrotated-bbox behavior.

However groups should behave the same as single objects.

A group remembers its rotation angle, so it should be possible to show rotated axes for groups.

An additional problem/bug is that if a rotated group IS resized, then even if the group's rotation is set back to zero, it can not ever again be resized independently in horiz. and vertical directions.

Steps to Reproduce:
1. Draw a box and an adjacent circle, and make them a group
   (click the box, SHIFT-click the circle, then Shape->Group=>Group)
2. Resize only horizontally or vertically using side handles (this works)
3. Format->Position and Size... and set Rotation angle to 15; OK
4. Click outside, then click the group to select it (bbox displays).
5. The bbox is not rotated; side resize handles change in both (original) directions.

6. Resize the group in some way; then Format->Position and Size... and set Angle back to zero; OK
7. Try to resize -- can not resize in only one axis.

Actual Results:

Expected Results:
Groups and individual objects should work the same, with a group's bbox rotating with the group instead of staying aligned with the page edges.

Reproducible: Always

User Profile Reset: No

Additional Info:
This is an old problem, probably inherited from OO
Comment 1 Jim Avera 2020-07-22 03:31:35 UTC
Created attachment 163391 [details]
screenshot showing rotated and not-rotated bounding boxes
Comment 2 Xisco Faulí 2021-02-09 15:08:34 UTC
Hello Jim Avera,
A new major release of LibreOffice is available since this bug was reported.
Could you please try to reproduce it with the latest version of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the latest version.
Comment 3 Buovjaga 2021-02-11 08:26:46 UTC Comment hidden (obsolete)
Comment 4 Jim Avera 2021-02-15 19:24:21 UTC
@Buovjaga, could you describe exactly what you did?

Were you able to resize the combined object along only one of its (rotated) axes?

Please try with rectangles like in the attached screen-shot.   Are you not seeing the same behavior? (i.e. resize bbox does not rotate with grouped objects)
Comment 5 QA Administrators 2021-02-16 04:10:41 UTC Comment hidden (obsolete)
Comment 6 Buovjaga 2021-02-16 05:24:26 UTC
Argh, I misread the last step. I do reproduce.

Arch Linux 64-bit
Version: / LibreOffice Community
Build ID: dcce840cb2383873cc77da04b0bdc4526042c212
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: kf5
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 14 February 2021
Comment 7 QA Administrators 2023-02-17 03:26:56 UTC Comment hidden (obsolete)
Comment 8 Jim Avera 2023-02-28 20:20:55 UTC
Problem is still there in master as of Feb 17, 2023

Version: (X86_64) / LibreOffice Community
Build ID: 16a35542aa07ed69c6c699d1c17f076d87708958
CPU threads: 12; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded