]> granicus.if.org Git - imagemagick/commitdiff
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=29839
authorCristy <urban-warrior@imagemagick.org>
Sun, 5 Jun 2016 14:17:23 +0000 (10:17 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 5 Jun 2016 14:17:23 +0000 (10:17 -0400)
coders/caption.c

index f8f26fc0c86dd1f13556a6811e537b373d78de85..6bdb6986653fbff67a674c2229d58ed076b1b2db 100644 (file)
@@ -202,7 +202,7 @@ static Image *ReadCAPTIONImage(const ImageInfo *image_info,
       image=DestroyImageList(image);
       return((Image *) NULL);
     }
-  if (fabs(image_info->pointsize) < MagickEpsilon)
+  if ((fabs(image_info->pointsize) < MagickEpsilon) && (strlen(caption) > 0))
     {
       double
         high,