]> git.eshelyaron.com Git - emacs.git/commit
More-robust svg_load_image fallback
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 3 Dec 2021 17:47:22 +0000 (09:47 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 3 Dec 2021 18:25:09 +0000 (10:25 -0800)
commit19ac237c9eeedebbf6bfb23e16d5f9f463e2d80a
tree6740ae171aed116f35cf35b614a6459f5dc6db90
parentc9186b1b0bfb7662a2765aac5dd1afd4309fdfec
More-robust svg_load_image fallback

Suggested by Alan Third (Bug#44655#56).
* src/image.c (svg_load_image): Fall back on
rsvg_handle_get_geometry_for_layer if the
rsvg_handle_get_intrinsic_dimensions computations yielded unusable
viewbox width and height, instead of falling back only if
rsvg_handle_get_intrinsic_dimensions did not report image width
and height, or did not report a viewbox.
src/image.c