From 6bc51373d78c29493024fd93d5e98a075fdff55d Mon Sep 17 00:00:00 2001 From: cristy Date: Wed, 13 Mar 2013 21:35:24 +0000 Subject: [PATCH] --- coders/caption.c | 2 +- coders/label.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/coders/caption.c b/coders/caption.c index 5b8cd55fa..2211dcae5 100644 --- a/coders/caption.c +++ b/coders/caption.c @@ -155,7 +155,7 @@ static Image *ReadCAPTIONImage(const ImageInfo *image_info, if (gravity != (char *) NULL) draw_info->gravity=(GravityType) ParseCommandOption(MagickGravityOptions, MagickFalse,gravity); - if ((*caption != '\0') && (image_info->pointsize == 0.0)) + if ((*draw_info->text != '\0') && (image_info->pointsize == 0.0)) { char *text; diff --git a/coders/label.c b/coders/label.c index 0fef1c9d6..d1cfece79 100644 --- a/coders/label.c +++ b/coders/label.c @@ -130,7 +130,7 @@ static Image *ReadLABELImage(const ImageInfo *image_info, label=GetImageProperty(image,"label",exception); draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL); draw_info->text=ConstantString(label); - if ((*label != '\0') && (image_info->pointsize == 0.0)) + if ((*draw_info->text != '\0') && (image_info->pointsize == 0.0)) { double high, -- 2.50.1