]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1519
authorCristy <mikayla-grace@urban-warrior.org>
Sat, 23 Mar 2019 18:41:38 +0000 (14:41 -0400)
committerCristy <mikayla-grace@urban-warrior.org>
Sat, 23 Mar 2019 18:41:38 +0000 (14:41 -0400)
coders/pango.c

index 0fe0be2b227836d6a159d09d288527e9e3ac9448..fd9040bc4f5462fcda026dafa553f99f4a60964c 100644 (file)
@@ -185,6 +185,8 @@ static Image *ReadPANGOImage(const ImageInfo *image_info,
   assert(exception->signature == MagickCoreSignature);
   image=AcquireImage(image_info,exception);
   (void) ResetImagePage(image,"0x0+0+0");
+  if ((image->columns != 0) && (image->rows != 0))
+    (void) SetImageBackgroundColor(image,exception);
   /*
     Format caption.
   */