From 86d95dc4ad2f270910e2dc86ffc8fe3a9d5487ff Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 15 May 2018 20:16:02 -0400 Subject: [PATCH] Fixed the -mask option --- MagickWand/mogrify.c | 1 - MagickWand/operation.c | 1 - 2 files changed, 2 deletions(-) diff --git a/MagickWand/mogrify.c b/MagickWand/mogrify.c index e46edb675..92c4815f0 100644 --- a/MagickWand/mogrify.c +++ b/MagickWand/mogrify.c @@ -2119,7 +2119,6 @@ WandExport MagickBooleanType MogrifyImage(ImageInfo *image_info,const int argc, mask=GetImageCache(mogrify_info,argv[i+1],exception); if (mask == (Image *) NULL) break; - (void) NegateImage(mask,MagickFalse,exception); (void) SetImageMask(*image,WritePixelMask,mask,exception); mask=DestroyImage(mask); break; diff --git a/MagickWand/operation.c b/MagickWand/operation.c index 1a2a5dd7c..7d7589679 100644 --- a/MagickWand/operation.c +++ b/MagickWand/operation.c @@ -2725,7 +2725,6 @@ static MagickBooleanType CLISimpleOperatorImage(MagickCLI *cli_wand, mask=GetImageCache(_image_info,arg1,_exception); if (mask == (Image *) NULL) break; - (void) NegateImage(mask,MagickFalse,exception); (void) SetImageMask(_image,WritePixelMask,mask,_exception); mask=DestroyImage(mask); break; -- 2.50.1