From 6daba5059afc31662eca4cfaccf9655b235a6557 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Wed, 21 Aug 2019 12:41:51 +0200 Subject: [PATCH] Minor refactoring. --- coders/caption.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/coders/caption.c b/coders/caption.c index 80f1a3320..20e757545 100644 --- a/coders/caption.c +++ b/coders/caption.c @@ -173,8 +173,7 @@ static Image *ReadCAPTIONImage(const ImageInfo *image_info, if (image->columns == 0) { text=AcquireString(caption); - i=FormatMagickCaption(image,draw_info,split,&metrics,&text, - exception); + i=FormatMagickCaption(image,draw_info,split,&metrics,&text,exception); (void) CloneString(&draw_info->text,text); text=DestroyString(text); (void) FormatLocaleString(geometry,MagickPathExtent,"%+g%+g", @@ -182,8 +181,7 @@ static Image *ReadCAPTIONImage(const ImageInfo *image_info, if (draw_info->gravity == UndefinedGravity) (void) CloneString(&draw_info->geometry,geometry); status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception); - width=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); - image->columns=width; + image->columns=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); } if (image->rows == 0) { -- 2.40.0