Subject: bug#44655: 28.0.50; Oversized SVG margin

From: Andy Moreton <[email-masked]>
Date: Fri, 20 Nov 2020 00:18:38 +0000

On Wed 18 Nov 2020, Alan Third wrote:

> On Thu, Nov 19, 2020 at 12:40:00AM +0300, Matsievskiy S.V. wrote:
>> Got clarification from Gnome. rsvg_handle_get_dimensions is not
>> deprecated:
>> 
>> https://discourse.gnome.org/t/rsvg-rsvg-handle-get-dimensions-deprecation/4821
>
> OK, thanks. The patch is pushed to master.

This needs another fixup for the Windows build (64bit Mingw64):

C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: image.o: in function `svg_load_image':
C:/emacs/git/emacs/master/src/image.c:9916: undefined reference to `rsvg_handle_get_dimensions'

It looks like the ifdefs for Windows in image.c do not do the runtime import of
rsvg_handle_get_dimensions if librvsg version < 2.46.0, but now it is
needed always.

    AndyM