reklis/SVGKit — pull request #2 by adamgit (2011-11-23 16:49:59+00:00)
Title: Fix that affects MANY inkscape files: implicit "absolute" line segments were being converted to "relative"

I may have mis-read the spec, but my understanding is that in e.g.:

M 1,1 2,2, 3,3 z

...you should end up at (3,3)

Your code ends up at (6,6), because it assumes that the implicit "M"s were all relative.

This commit adds an extra BOOL to keep track of whethter the "initiating" command was relative or absolute.

There's also a very simple SVG file that demonstrates the bug clearly, and shows the fix working.