From: Cristy Date: Sun, 10 Jun 2018 20:10:26 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1169 X-Git-Tag: 7.0.7-39~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=abcaa098948be1351d3fd2766843ae0da70cda30;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1169 --- diff --git a/MagickCore/effect.c b/MagickCore/effect.c index d33665008..6dd4e1cd9 100644 --- a/MagickCore/effect.c +++ b/MagickCore/effect.c @@ -3153,7 +3153,8 @@ MagickExport Image *SelectiveBlurImage(const Image *image,const double radius, (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); diff --git a/MagickCore/image.c b/MagickCore/image.c index fa262378d..12ed19903 100644 --- a/MagickCore/image.c +++ b/MagickCore/image.c @@ -883,7 +883,8 @@ MagickExport Image *CloneImage(const Image *image,const size_t columns, (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);