]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/532
authorCristy <urban-warrior@imagemagick.org>
Wed, 28 Jun 2017 18:45:16 +0000 (14:45 -0400)
committerCristy <urban-warrior@imagemagick.org>
Wed, 28 Jun 2017 18:45:16 +0000 (14:45 -0400)
MagickWand/mogrify.c
MagickWand/operation.c

index cbf6ef95e3f1d61eb0d04f0b6bd10961c3017b8d..83d8cd172ae9c80ead280ce1f3af338e7453fbee 100644 (file)
@@ -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;
               }
index 4e7b4e0302eff6045f0c335eb2ae2a5c937193a7..56c69aa95508186b3f46173816e09469b46825b0 100644 (file)
@@ -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)