From ee60b346b8fce70eb3b239a78e2486fba9615069 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 23 Mar 2019 14:41:38 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/1519 --- coders/pango.c | 2 ++ 1 file changed, 2 insertions(+) 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. */ -- 2.40.0