SVG files are corrupted in rsvg

Bug #206061 reported by Patrick Niklaus
2
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Jaspervdg

Bug Description

When using current Inkscape (rev18007, 24. March 2008) saved SVG files are not rendered correctly in with librsvg.
However users on the IRC reported the file is rendered correct in Firefox 2, Qt and Inkscape itself.

Using an older version of inkscape (rev17116, 18 January 2008) and saving it as plain svg fixed it. This does not work with current inkscape.

I attached a preview of how the file should look like and how librsvg renders it. I also attached the file itself.

Regards,
Patrick

Revision history for this message
Patrick Niklaus (patrick-niklaus) wrote :
Revision history for this message
Patrick Niklaus (patrick-niklaus) wrote :
Revision history for this message
Patrick Niklaus (patrick-niklaus) wrote :

I traced the bug back in the svn history and it seems it is caused by r17918.

Revision history for this message
Patrick Niklaus (patrick-niklaus) wrote :
Revision history for this message
bbyak (buliabyak) wrote :

17918 was the optimized path data pach. However I suspect it's a problem with rsvg's path parser, not Inkscape. Jasper, can you please have a look and close if that's the case.

Changed in inkscape:
assignee: nobody → th-v-d-gronde
Revision history for this message
Jaspervdg (jaspervdg) wrote :

I've double-checked "Broken svg" and it seems valid to me. I've narrowed it down to rsvg not dealing correctly with an 'M' or 'm' operator followed by more than one coordinate pair. It should read "M 0,0 1,0" as "M 0,0 L 1,0", but it doesn't (I get the feeling it just fails to parse the path), it can cope correctly with things like "M 0,0 L 1,0 0,1". I've filed a bug report with librsvg (http://bugzilla.gnome.org/show_bug.cgi?id=524306), if anyone can provide additional information that would be great.

As for solving Patrick's problem, you can switch off this behaviour by adding a forcerepeatcommands attribute (set to 1) to the output/svgoutput element in your preferences.xml

Changed in inkscape:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.