On 2012-09-10 17:19, Krzysztof KosiĆski wrote:
2012/9/10 Jasper van de Gronde <th.v.d.gronde@...528...>:
Not really, the way 'z' is interpreted now, Inkscape either has to rely on exact(!) coincidence of the start and end node to hide the fact that there really is another segment, or now and then show an, that users cannot get rid of (and complicates selecting nodes and so on).
I previously wrote this in an accidentally off-list response: the workaround to this problem is to always write out the moveto command that starts a new subpath and the last point of the last segment in absolute coordinates. This way the start and end nodes will always coincide exactly.
I've checked in a change that accomplishes this. It does not try to be "smart" about it, so it simply always ensures the last segment before a close-path is absolute. It would be quite easy to add a check to see whether the current point equals the initial point, but of course then the question again becomes whether this should be an exact check or not, and if not, what the tolerance would have to be, etc., etc. On the other hand, the current choice should have a pretty small impact, and is extremely simple.