From: Po Lu Date: Sun, 13 Nov 2022 09:30:37 +0000 (+0800) Subject: Fix bug#59075 X-Git-Tag: emacs-29.0.90~1616^2~174 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7a9beac46142eb70061c45ef222d72f84b7b18ab;p=emacs.git Fix bug#59075 * src/nsimage.m (ns_can_use_native_image_api): Do not use native image APIs for SVG images when RSVG is present. (bug#59075) --- diff --git a/src/nsimage.m b/src/nsimage.m index 9cb5090dd0d..dd8768664a4 100644 --- a/src/nsimage.m +++ b/src/nsimage.m @@ -74,8 +74,10 @@ ns_can_use_native_image_api (Lisp_Object type) imageType = @"com.compuserve.gif"; else if (EQ (type, Qtiff)) imageType = @"public.tiff"; +#ifndef HAVE_RSVG else if (EQ (type, Qsvg)) imageType = @"public.svg-image"; +#endif else if (EQ (type, Qheic)) imageType = @"public.heic";