const MagickBooleanType split,TypeMetric *metrics,char **caption,
ExceptionInfo *exception)
{
+ char
+ *text;
+
MagickBooleanType
status;
ssize_t
n;
+ text=AcquireString(draw_info->text);
q=draw_info->text;
s=(char *) NULL;
for (p=(*caption); GetUTFCode(p) != 0; p+=GetUTFOctets(p))
if (status == MagickFalse)
break;
width=(size_t) floor(metrics->width+0.5);
- if (width <= image->columns)
+ if ((width <= image->columns) || (strcmp(text,draw_info->text) == 0))
continue;
+ (void) strcpy(text,draw_info->text);
if ((s != (char *) NULL) && (GetUTFOctets(s) == 1))
{
*s='\n';
q=draw_info->text;
s=(char *) NULL;
}
+ text=DestroyString(text);
n=0;
for (p=(*caption); GetUTFCode(p) != 0; p+=GetUTFOctets(p))
if (GetUTFCode(p) == '\n')