From 8ba1fcde365d831624c77f6e8fb93650f79c9392 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 5 Jun 2016 10:28:24 -0400 Subject: [PATCH] ... --- coders/label.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/coders/label.c b/coders/label.c index fb862ffaf..53d1601b8 100644 --- a/coders/label.c +++ b/coders/label.c @@ -140,8 +140,9 @@ static Image *ReadLABELImage(const ImageInfo *image_info, image->rows=(size_t) floor(metrics.height+draw_info->stroke_width+0.5); } else - if (((image->columns == 0) || (image->rows == 0)) || - (fabs(image_info->pointsize) < MagickEpsilon)) + if ((strlen(label) > 0) && + (((image->columns == 0) || (image->rows == 0)) || + (fabs(image_info->pointsize) < MagickEpsilon))) { double high, @@ -199,7 +200,7 @@ static Image *ReadLABELImage(const ImageInfo *image_info, status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception); if (status == MagickFalse) { - draw_info=DestroyDrawInfo(draw_info); + draw_info=DestroyDrawInfo(draw_info); image=DestroyImageList(image); return((Image *) NULL); } -- 2.40.0