From: Po Lu Date: Sun, 6 Nov 2022 12:11:56 +0000 (+0800) Subject: ; * src/image.c (syms_of_image): Add missed part of change. X-Git-Tag: emacs-29.0.90~1616^2~261 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=44138d5ecce275caef9efe0ae4f4a89e4a33b588;p=emacs.git ; * src/image.c (syms_of_image): Add missed part of change. Author: --- diff --git a/src/image.c b/src/image.c index 15eaf89d7f6..600c32571e1 100644 --- a/src/image.c +++ b/src/image.c @@ -12217,7 +12217,10 @@ non-numeric, there is no explicit limit on the size of images. */); && ((defined HAVE_NS && defined NS_IMPL_COCOA) \ || defined HAVE_HAIKU) DEFSYM (Qsvg, "svg"); - add_image_type (Qsvg); + + /* On Haiku, the SVG translator may not be installed. */ + if (image_can_use_native_api (Qsvg)) + add_image_type (Qsvg); #endif #ifdef HAVE_NS