GNOME Bugzilla – Bug 689832
Simple SVG file rendered incorrectly
Last modified: 2017-12-13 17:57:07 UTC
Created attachment 230953 [details] Problematic SVG file I have a very simple SVG file that is rendered incorrectly in all applications that use librsvg internally. In other apps (such as Inkscape or even Internet Explorer), the image shows up just fine. I found out that if I break the topmost element group in Inkscape, it works even under librsvg. But that's not a solution...
Created attachment 230954 [details] Correct rendering (from Inkscape)
Created attachment 230955 [details] Incorrect rendering (from GIMP)
Created attachment 233524 [details] [review] Suggested patch The attached patch that we wrote at Orderman may be rather hackish, but fixes the problem. The real problem is that librsvg tries to resolve references to gradients at the time the reference is found. This works only if the referred gradient was defined beforehand, but that doesn't seem to be required by the SVG specification. The patch allows for lazy reference resolution.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/librsvg/issues/70.