From 4aa314e7f9e09c30fcedcd112156b1dfb712b62d Mon Sep 17 00:00:00 2001 From: cristy Date: Fri, 19 Aug 2011 13:59:45 +0000 Subject: [PATCH] --- MagickCore/annotate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MagickCore/annotate.c b/MagickCore/annotate.c index 822f3f885..9a2bfb3e3 100644 --- a/MagickCore/annotate.c +++ b/MagickCore/annotate.c @@ -568,13 +568,13 @@ MagickExport ssize_t FormatMagickCaption(Image *image,DrawInfo *draw_info, width=(size_t) floor(metrics->width+0.5); if (width <= image->columns) continue; - if (s != (char *) NULL) + if ((s != (char *) NULL) && (GetUTFOctets(s) == 1)) { *s='\n'; p=s; } else - if (split != MagickFalse) + if ((s != (char *) NULL) || (split != MagickFalse)) { char *target; -- 2.50.1