]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 1 May 2011 18:58:10 +0000 (18:58 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 1 May 2011 18:58:10 +0000 (18:58 +0000)
magick/annotate.c

index 35a14248bb2c54204df5c573eb27ceb92076fd9c..0d20d1c16ae7af734c1d35d91380c9d8ca752a5f 100644 (file)
@@ -535,9 +535,6 @@ MagickExport MagickBooleanType AnnotateImage(Image *image,
 MagickExport ssize_t FormatMagickCaption(Image *image,DrawInfo *draw_info,
   const MagickBooleanType split,TypeMetric *metrics,char **caption)
 {
-  char
-    *snippet;
-
   MagickBooleanType
     status;
 
@@ -554,16 +551,8 @@ MagickExport ssize_t FormatMagickCaption(Image *image,DrawInfo *draw_info,
 
   q=draw_info->text;
   s=(char *) NULL;
-  snippet=(char *) NULL;
   for (p=(*caption); GetUTFCode(p) != 0; p+=GetUTFOctets(p))
   {
-    if (snippet != (char *) NULL)
-      {
-        if ((p != (char *) NULL) && (memcmp(p,snippet,strlen(p)) == 0))
-          break;  /* caption won't fit in allotted space */
-        snippet=DestroyString(snippet);
-      }
-    snippet=AcquireString(p);
     if (IsUTFSpace(GetUTFCode(p)) != MagickFalse)
       s=p;
     for (i=0; i < (ssize_t) GetUTFOctets(p); i++)
@@ -612,8 +601,6 @@ MagickExport ssize_t FormatMagickCaption(Image *image,DrawInfo *draw_info,
     s=(char *) NULL;
     q=draw_info->text;
   }
-  if (snippet != (char *) NULL)
-    snippet=DestroyString(snippet);
   i=0;
   for (p=(*caption); GetUTFCode(p) != 0; p+=GetUTFOctets(p))
     if (GetUTFCode(p) == '\n')