Bug 148188 - Distribute Selection not working correctly when shadows are enabled
Summary: Distribute Selection not working correctly when shadows are enabled
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: implementationError
Depends on:
Blocks: Shapes
  Show dependency treegraph
 
Reported: 2022-03-25 18:07 UTC by Rafael Lima
Modified: 2023-06-03 20:16 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Video showing the bug (185.03 KB, video/mp4)
2022-03-25 18:07 UTC, Rafael Lima
Details
Sample ODP file (11.57 KB, application/vnd.oasis.opendocument.presentation)
2022-03-25 18:07 UTC, Rafael Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Lima 2022-03-25 18:07:09 UTC
Created attachment 179110 [details]
Video showing the bug

In Impress/Draw, if you select 3 or more objects, right-click them and go to Distribute Selection > Horizontally Spacing, the objects should be re-positioned so that the horizontal spacing between them is the same. This works nicely when objects do not have shadows. However, when shadows are enabled, the horizontal spacing is calculated incorrectly.

See the attached video where I use 2 sets with three rectangles each. The first set does not have shadows and horizontal spacing works fine. Enabling shadows in the second set of rectangles breaks spacing calculations.

Steps to reproduce:
1) Open the attached sample ODP file
2) Select the 3 rectangles without shadows
3) Go to Distribute Selection > Horizontally Spacing
4) Notice the three rectangles are spaced evenly (which is expected)
5) Now select the three rectangles with shadows
6) Go to Distribute Selection > Horizontally Spacing
7) Notice that the spacing between rectangles is not the same

System info:
Version: 7.3.1.3 / LibreOffice Community
Build ID: 30(Build:3)
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.1~rc3-0ubuntu0.21.10.1~lo2
Calc: threaded
Comment 1 Rafael Lima 2022-03-25 18:07:52 UTC
Created attachment 179111 [details]
Sample ODP file

This is the sample ODP file I used in the video.
Comment 2 Buovjaga 2023-01-03 12:03:40 UTC
Repro, already in 7.1 when shadows were implemented.

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 88ebc324a51f16df0248d6a0d53d2169b1995dda
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded Jumbo
Built on 3 January 2023