From 44138d5ecce275caef9efe0ae4f4a89e4a33b588 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 6 Nov 2022 20:11:56 +0800 Subject: [PATCH] ; * src/image.c (syms_of_image): Add missed part of change. Author: --- src/image.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2