From f24de4cb1c063d2aca53f54d16114ff0775b2aee Mon Sep 17 00:00:00 2001 From: Cristy Date: Wed, 28 Jun 2017 14:45:16 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/532 --- MagickWand/mogrify.c | 2 +- MagickWand/operation.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MagickWand/mogrify.c b/MagickWand/mogrify.c index cbf6ef95e..83d8cd172 100644 --- a/MagickWand/mogrify.c +++ b/MagickWand/mogrify.c @@ -1073,7 +1073,7 @@ WandExport MagickBooleanType MogrifyImage(ImageInfo *image_info,const int argc, (void) SyncImageSettings(mogrify_info,*image,exception); if (*option == '+') { - (void) SetImageMask(*image,ReadPixelMask,(Image *) NULL, + (void) SetImageMask(*image,WritePixelMask,(Image *) NULL, exception); break; } diff --git a/MagickWand/operation.c b/MagickWand/operation.c index 4e7b4e030..56c69aa95 100644 --- a/MagickWand/operation.c +++ b/MagickWand/operation.c @@ -1965,7 +1965,7 @@ static MagickBooleanType CLISimpleOperatorImage(MagickCLI *cli_wand, if (IfNormalOp) (void) ClipImage(_image,_exception); else /* "+mask" remove the write mask */ - (void) SetImageMask(_image,ReadPixelMask,(Image *) NULL,_exception); + (void) SetImageMask(_image,WritePixelMask,(Image *) NULL,_exception); break; } if (LocaleCompare("clip-mask",option+1) == 0) -- 2.40.0