Issue 122269 - Distribution->Spacing unevenly distributes last element?
Summary: Distribution->Spacing unevenly distributes last element?
Status: UNCONFIRMED
Alias: None
Product: Impress
Classification: Application
Component: formatting (show other issues)
Version: 3.4.1
Hardware: PC Windows 7
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-09 20:57 UTC by jstdhr
Modified: 2013-06-18 11:02 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
picture (17.32 KB, image/jpeg)
2013-05-09 20:57 UTC, jstdhr
no flags Details
The failed repro attempt - polygons evenly spaced (10.42 KB, application/vnd.oasis.opendocument.presentation)
2013-06-15 18:48 UTC, Vernon Richards
no flags Details
A successful repro attempt - polygons unevenly spaced (10.88 KB, application/vnd.oasis.opendocument.presentation)
2013-06-15 18:49 UTC, Vernon Richards
no flags Details
A presentation containing polygons that are spaced evenly and unevenly (12.46 KB, application/vnd.oasis.opendocument.presentation)
2013-06-15 18:50 UTC, Vernon Richards
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description jstdhr 2013-05-09 20:57:42 UTC
Created attachment 80657 [details]
picture

Create an irregular polygon composed of isosceles right triangles.  Copy and paste in a row. <right-click>"Distribution->Spacing" -- the last element is not spaced correctly.
Comment 1 Ariel Constenla-Haile 2013-05-09 22:21:00 UTC
Can you attach the document with the shapes?
Comment 2 Vernon Richards 2013-06-15 18:47:26 UTC
Environment: 
OS: Win7 SP1
AOO: 3.4.1

This bug appeared to be unreproducible at first but I’ve been able to reproduce this 3/10 times. I’ve been unable to isolate the critical conditions required to reproduce this bug 100%. Repro steps below:

1) Open a new Impress presentation
2) Add some right-angle triangles to a blank slide
3) Group them (how? TBA)
4) Convert the grouped shape to a polygon (how? TBA)
5) Copy and paste 5 times
6) Select all 6 shapes
7) Distribute the shapes using horizontal spacing (how? TBA)
8) Observed result

Initially, the polygons were evenly distributed. I confirmed this by using the Dimension Line  object (add the Lines and Arrows button > Select Dimension Line) and measuring the distance between adjacent shapes. No overlapping was seen in 3 repro attempts using the original steps. See attachment “Bug 122269  - Failed repro attempt.odp”

Experimenting with copy and paste lead to limited success reproducing the issue. In the initial attempts, I would create a single triangle, position it (to match the attachment from the original report), then copy that, position it, and so on. However, doing lots of copy and paste’s one after the other and then repeating the steps, caused the spacing issue to happen more frequently. See attachment “Bug 122269  - Successful repro attempt.odp”

When the issue does occur, it appears that the left-most and right-most shapes/polygons do not move.

Also, copying a polygon from one presentation to another, carry it’s behaviour along with it - so a correctly spacing polygon will behave the same way in a different presentation file and vice versa. You can have Perhaps there is some property of shapes/polygons that being copied across (I’m no AOO expert though so this could be a red herring). See attachment “Bug 122269  - Successful repro attempt - Spacing and non-spacing.odp”

Some things for further investigation:
a) Is this a problem just with right-angle triangles? I tried using diamonds but was unable to reproduce the problem
b) Is this a problem with normal bitmap shapes? I tried using circles but was unable to reproduce the problem (although the repro rate means this is by no means conclusive)
Comment 3 Vernon Richards 2013-06-15 18:48:19 UTC
Created attachment 80862 [details]
The failed repro attempt - polygons evenly spaced
Comment 4 Vernon Richards 2013-06-15 18:49:30 UTC
Created attachment 80863 [details]
A successful repro attempt - polygons unevenly spaced
Comment 5 Vernon Richards 2013-06-15 18:50:13 UTC
Created attachment 80864 [details]
A presentation containing polygons that are spaced evenly and unevenly
Comment 6 Armin Le Grand 2013-06-18 11:02:27 UTC
ALG: I have tried various combinations of the triangle shape, the triangle shape converted to polygon and bitmap, all went well. Checked with all objects at the same position, all but one in one position and other stuff, all went well. Checked with grouped triangles, went well. With grouped and converted, all went well. Checked on win7 and mac.