svg arc path command parsing error on sweep flag
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
High
|
Krzysztof Kosinski | ||
inkscape (Debian) |
Fix Released
|
Unknown
|
Bug Description
Program svgo compressed/
m-200-1000 -50 0 a50 50 0 0 1 100 0 50 50 0 0 1-100 0
Only the first arc was seen in Inkscape. All following path commands were ignored.
Using the XML editor the command was changed to
m-200-1000 -50 0 a50 50 0 0 1 100 0 50 50 0 0 1 -100 0
adding a space between the sweep flag and x value: "1-100" changed to "1 -100". After that both arcs were displayed.
Note that this SVG file is displayed correctly in the browsers FireFox, Chrome, Opera and IE10. From my memory of reading the path parsing rules this sensitivity shouldn't happen. Encountering the '-' minus sign should not cause an error.
Even more worrisome is that when experimenting using the XML editor on the path, when 'set' was clicked the path including and following the problem arc command disappeared! Inkscape is parsing and then replacing with the successfully parsed resulting path. Kind of rude, that.
This is with Inkscape 0.48.4 r9939 running on Windows 8
tags: | added: svg |
Changed in inkscape (Debian): | |
status: | Unknown → Confirmed |
Changed in inkscape (Debian): | |
status: | Confirmed → Fix Released |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
It would ease further investigation of the reported issue if you could attach a simplified test case consisting of
1) the original SVG file (unmodified by external optimizers),
2) the modified SVG file as output by svgo,
3) the SVG file from 2 saved after later edits via Inkscape's XML Editor