Aligning stroked and strokeless items & bounding box issues
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
Alvin Penner |
Bug Description
Platform: (debian) Inkscape 0.47pre2 r22153, built Oct 30 2009
I have been trying to align objects with various strokes and dimensions, and I am frustrated by some inconsistencies. Please look at my screenshot first as I walk you through this.
I am trying to visually align figures like in the screenshot, some with strokes, some without etc... The square path is a drawn rectangle with a thick stroke, converted to a path, and one line segment is removed on the left side. The circle is a strokeless circle with solid fill.
Goal:
I want the first pixel (left most or right most) of the first object (whether it is a stroke or a fill in vector land) to line up with the first pixel of the second object (stroke or fill).
The inkscape documentation states that align lines up the outer edges of bounding boxes:
http://
When I have visual bounding boxes, this is the case, the bounding box for the circle brackets the circle perfectly, but the bounding box for my squarish path sits one half stroke width off to the left of the line segment that is no longer there.
The align tools in visual bounding box mode left align the circle to the squarish path's false left bounding box.
So, I tried to change to geometric bounding boxes, which indeed placed the bounding box for the squarish path in the middle of the stroke on the stroked path, and directly against the fill on the open side of the path. Again, I tried to align the circle and squarish path on it's open side. Same result, and now there is not even the excuse that the wrong bounding box was the cause.
I tried vertically aligning the squarish path and circle to each other while still in geometric bounding box mode. The align tool disregarded the bounding box mode and worked exactly like it would have in visual bounding box mode.
Removing the stroke from the squarish path made the open side and the segmented sides work alike in terms of bounding box and alignment. I seem to recall that stroke end caps styles have no effect on this problem.
So we have two problems:
1) Inkscape's align tool always aligns to visual bounding box, regardless of bounding box mode set. We should change documentation of the tool to reflect this, or change align's behavior to respect the geometric bounding box when in that mode. Could be useful for aligning interior points or something.
2) Visual bounding box is always offset 1/2 stroke width from a path even if that path has an open outermost edge with no path segment present. This is likely a bug in the bounding box model, and I would recommend changing this visual box model to actually match the visual outlines of the path it brackets.
Related branches
tags: |
added: aligning selection removed: transformations ui-selection-group-layer |
Changed in inkscape: | |
assignee: | nobody → Alvin Penner (apenner) |
milestone: | none → 0.49 |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
The screenshot is from geometric bounding box mode.