Comment 4 for bug 1485831

Revision history for this message
su_v (suv-lp) wrote :

Testing patch on OS X 10.7.5 (with GTK+/X11 as well as with GTK+/Quartz backend, both use the Gtk+ file chooser dialog):
- ok for bitmap images
- for SVG documents:

Seems to work as expected if the file has at least a viewBox attribute. Files which have
- no width, no viewBox
- no height, no viewBox
- no width, no height, no viewBox
attribute on the top-level <svg> element produce these additional warnings (from librsvg) for the preview image:

(inkscape:74119): glibmm-WARNING **: Glib::Error::throw_exception():
  unknown error domain 'rsvg-error-quark': throwing generic Glib::Error exception

** Message: Caught ... in SVGPreview::showImage

There is no preview generated either, but that happens without or with patch; the failure however is silent wrt console messages without the patch. I had these files still lying around from investigating bug #1461346 and bug #1463623).