View Issue Details

IDProjectCategoryView StatusLast Update
0008042ScribusShape Drawingpublic2016-05-05 15:55
Reporterbisrcacuo Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
PlatformLinuxOSKubuntuOS Version9.04
Product Version1.3.3.12 
Target Version1.6 milestone 
Summary0008042: Origins of straight line objects are calculated incorrectly
DescriptionWhen drawing straight line objects, it seems as though Scribus thinks the center of the line is 0.5 points beside the actual center of the line.
Steps To Reproduce1 - Draw a horizontal and a vertical line, both 0.5" long and 1 point thick using the "Insert Line (L)" tool.
2 - Draw a 0.25" wide and high circle with no fill colour with a 1 point thick line.
3 - Select all three objects and use the "Align and Distribute" dialog box to center all three objects both horizontally and vertically to the center of the page.
4 - Notice how the center of the lines do not run through the center of the circle. However, notice one edge from each of the two lines does go through the center of the circle.
5 - using the measurements tool or XY coordinate display verify that the intersection of the two line edges is at the center of the page
6 - decrease the thickness of the two lines to 0.1 points. The problem now is even more obvious
7 - repeat the horizontal and vertical centering using align-and-distribute. Notice how the lines don't move their position.

Conclusion: Only when the line is 1 point thick does the edge go through the center of the page. It seems like Scribus thinks the center of the line is 0.5 points beside the actual center of the line.
Additional InformationThis misalignment occurs with lines of any thickness or length.
You can also try aligning rotated lines. If they're 1 point thick, one of their edges will go through the center of the circle.
This problem does not happen with straight Bezier lines.

I have attached a file which contains two lines, two circles, and a square. All of them have been centered on a 10" by 10" page. Zoom in to see the misalignment.

I talked with christoph_s on the #scribus freenode IRC channel who verified this problem and told me to file a bug report.
Tags#please_test, lines
PatchNo

Relationships

related to 0013706 confirmed Changing Line width renders line incorrectly when selected 
related to 0013707 new Align and Distribute don't render horizontal/vertical line in certain conditions 
related to 0013887 confirmed Arrows should snap to the end of the arrow (and not the base of the arrow instead) for margins/marks/grids/objects etc... 
has duplicate 0008355 closedjghali Alignment is not correct / precise 

Activities

2009-05-15 04:05

 

problem.sla (49,610 bytes)

Kunda

2016-02-02 19:48

updater  

Issue History

Date Modified Username Field Change
2009-05-15 04:05 bisrcacuo New Issue
2009-05-15 04:05 bisrcacuo File Added: problem.sla
2009-05-15 16:28 christoph_s Status new => confirmed
2009-08-19 06:53 jghali Relationship added has duplicate 0008355
2016-02-02 19:37 Kunda Relationship added related to 0013706
2016-02-02 19:38 Kunda Relationship added related to 0013707
2016-02-02 19:38 Kunda Tag Attached: #please_test
2016-02-02 19:48 Kunda File Added: Screenshot 2016-02-02 13.47.33.png
2016-03-03 14:26 Kunda Patch => No
2016-03-03 14:26 Kunda Target Version => 1.6 milestone
2016-05-05 15:41 Kunda Relationship added related to 0013887
2016-05-05 15:55 Kunda Tag Attached: lines