]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 9 Apr 2012 19:11:47 +0000 (19:11 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 9 Apr 2012 19:11:47 +0000 (19:11 +0000)
coders/pango.c

index 8934fda26feb8b9da79165fc4a56e30b6d1c038f..37671cef2c40171d2f42e68181400663805a33e2 100644 (file)
@@ -329,7 +329,7 @@ static Image *ReadPANGOImage(const ImageInfo *image_info,
       pango_font_description_free(description);
     }
   option=GetImageOption(image_info,"pango:markup");
-  if (IfMagickTrue(IsStringNotFalse(option))) /* enabled by default */
+  if ((option != (const char *) NULL) && (IsMagickTrue(option) == MagickFalse))
     pango_layout_set_text(layout,caption,-1);
   else
     {