From: Cristy Date: Sat, 23 Mar 2019 18:41:38 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1519 X-Git-Tag: 7.0.8-35~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee60b346b8fce70eb3b239a78e2486fba9615069;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1519 --- diff --git a/coders/pango.c b/coders/pango.c index 0fe0be2b2..fd9040bc4 100644 --- a/coders/pango.c +++ b/coders/pango.c @@ -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. */