(void) ConcatenateString(&message,format);
for (u=0; u < (ssize_t) width; u++)
{
- (void) FormatLocaleString(format,MagickPathExtent,"%+f ",(double) *k++);
+ (void) FormatLocaleString(format,MagickPathExtent,"%+f ",(double)
+ *k++);
(void) ConcatenateString(&message,format);
}
(void) LogMagickEvent(TransformEvent,GetMagickModule(),"%s",message);
(void) memcpy(clone_image->colormap,image->colormap,length*
sizeof(*clone_image->colormap));
}
- if ((columns == 0) || (rows == 0))
+ if (((columns == image->columns) && (rows == image->rows)) ||
+ ((columns == 0) && (rows == 0)))
{
if (image->montage != (char *) NULL)
(void) CloneString(&clone_image->montage,image->montage);