From: Cristy Date: Mon, 12 Dec 2016 12:45:16 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.4-0~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=127a7069cf1b59be7339c293d9dc8d7aeb6e2685;p=imagemagick ... --- diff --git a/MagickCore/compare.c b/MagickCore/compare.c index 9f7af62db..f6fcf1207 100644 --- a/MagickCore/compare.c +++ b/MagickCore/compare.c @@ -195,7 +195,6 @@ MagickExport Image *CompareImages(Image *image,const Image *reconstruct_image, difference_image=DestroyImage(difference_image); return((Image *) NULL); } - (void) SetImageMask(highlight_image,ReadPixelMask,(Image *) NULL,exception); status=SetImageStorageClass(highlight_image,DirectClass,exception); if (status == MagickFalse) { @@ -203,6 +202,7 @@ MagickExport Image *CompareImages(Image *image,const Image *reconstruct_image, highlight_image=DestroyImage(highlight_image); return((Image *) NULL); } + (void) SetImageMask(highlight_image,ReadPixelMask,(Image *) NULL,exception); (void) SetImageAlphaChannel(highlight_image,OpaqueAlphaChannel,exception); (void) QueryColorCompliance("#f1001ecc",AllCompliance,&highlight,exception); artifact=GetImageArtifact(image,"compare:highlight-color");