[snapping] snap node to midpoint of 'z' segment closing a path fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Low
|
Diederik van Lierop |
Bug Description
Inkscape 0.47+devel r9486 on OS X 10.5.8, default settings
Snapping nodes to midpoints of 'z' segments closing a path fails. This is important because recently all shapes created with Inkscape and converted to paths are closed with 'z' if the last segment is a straight line (prior to the change the first and last node have been coinciding as well as closed with 'z').
Steps to reproduce:
1) draw a line with the pen tool
2) draw a rectangle and convert it to path
3) set 'Snap nodes and handles' with snap target 'Snap from and to midpoints of line segments'
4) drag the line to snap one of the end nodes to the left vertical edge of the (converted) rectangle
Expected result:
Node snaps to midpoint of the path segment.
Actual result:
No snap target is found.
Reproduced with rectangle, star, polygon and paths drawn with the pen tool and closed with a straight line.
Note: revision 9076 and 9079 added 'prevent a redundant closing line segment' when converting a rectangle, star or polygon to path and when creating a path with the pen (bezier) tool.
Related branches
tags: | added: regression |
Changed in inkscape: | |
milestone: | none → 0.49 |
status: | Confirmed → Fix Committed |
Changed in inkscape: | |
assignee: | nobody → Diederik van Lierop (mail-diedenrezi) |
importance: | Undecided → Low |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
Confirmed on Ubuntu 10.04 and Windows XP, Inkscape r9490.
Found something weird, after creating the same rectangle (200x200, bottom left, and converted to shape) in 0.47 and r9490 (same preferences).
With 0.47 the path is: m 0.5,851.86218 200,0 0,200.00002 -200,0 0,-200.00002 z
With r9490, I get: m 0.5,851.86218 200,0 0,200.00002 -200,0 z
The issue is not reproduced if the rectangle created in 0.47 is copied to r9490, but I still got the bug if I copy the rectangle from r9490 to 0.47.