]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 20 Aug 2011 23:04:43 +0000 (23:04 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 20 Aug 2011 23:04:43 +0000 (23:04 +0000)
MagickCore/annotate.c

index ec428bdf835a989840ab94aa734ed6287a086d96..6452e898275c23ff5549d20bad4670251b9d1f09 100644 (file)
@@ -559,7 +559,7 @@ MagickExport ssize_t FormatMagickCaption(Image *image,DrawInfo *draw_info,
   {
     if (IsUTFSpace(GetUTFCode(p)) != MagickFalse)
       s=p;
-    if (*p == '\n')
+    if (GetUTFCode(p) == '\n')
       q=draw_info->text;
     for (i=0; i < (ssize_t) GetUTFOctets(p); i++)
       *q++=(*(p+i));