GNOME Bugzilla – Bug 677068
Rendering an svg file incorrectly
Last modified: 2015-11-03 21:35:20 UTC
Created attachment 215229 [details] Left: eog incorrectly rendering the svg; Right: Firefox 12 correctly rendering the svg This problem seems to affect all software which is using librsvg, but not others, so I figure it is a bug. In the libgweather package, there is an image, weather-clear-night-090.svg (and weather-clear-night-270.svg), and it does not render as expected. I have attached a screenshot of the correct and incorrect renderings, using different software. I have also opened the file in inkscape, and it rendered properly as well.
Thanks for the bug report. Could you attach the original svg file, please ?
Created attachment 215245 [details] The svg which is not redering properly
Confirmed with librsvg master.
Created attachment 264691 [details] [review] Set correct reflextion points for path h, v and a The problematic part of this svg is a path where 's' follows a 'v' (shorthand curve after vertical line). Because the previous segment is not a bezier curve, the first reflexion point should be the last point of the vertical line. This last point is not always correctly set as reflexion point for a vertical line, horizontal line or arc.
Thanks for the patch - I missed this case when refactoring that code. This is now fixed in commit 34dcd26396a75405bd691f54a00d689fb6f755d8 - it should appear in librsvg 2.40.12.