Comment 16 for bug 1492153

Revision history for this message
Patrick Storz (ede123) wrote :

Here's a suggested patch which fixes the issue for me (trunk build of Inkscape r14630 on Windows 7 with gcc 5.3 branch of devlibs64 [1] including librevenge-0.0.4 and libcdr-0.1.2)

It simply replaces consecutive "closepath" commands with a single "Z".
Obviously it's more of a workaround at this point but I think it's a workable solution for the time being.

In the long run we'd have to figure out if consecutive "closepath" commands are valid to start with (the SVG specification is not really helpful here [2]).
Depending on the answer we can then go on and
a) change lib2geom to handle this correctly and/or
b) notify the libcdr authors about the issue so they can change the behaviour

[1] https://code.launchpad.net/~inkscape.dev/inkscape-devlibs64/5.3
[2] https://www.w3.org/TR/SVG/paths.html#PathDataClosePathCommand