]> granicus.if.org Git - imagemagick/commitdiff
Also remove the ReadPixelMask.
authorDirk Lemstra <dirk@git.imagemagick.org>
Sun, 18 Feb 2018 18:16:54 +0000 (19:16 +0100)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sun, 18 Feb 2018 18:16:54 +0000 (19:16 +0100)
MagickCore/draw.c

index d2ca466f10b2837fbc8c3ee39402f9b2487a5a61..3120c0bbc45333d659cd6a88eef9ec18467c484a 100644 (file)
@@ -1425,6 +1425,7 @@ MagickExport MagickBooleanType DrawClipPath(Image *image,
   clip_mask=CloneImage(image,image->columns,image->rows,MagickTrue,exception);
   if (clip_mask == (Image *) NULL)
     return(MagickFalse);
+  (void) SetImageMask(clip_mask,ReadPixelMask,(Image *) NULL,exception);
   (void) SetImageMask(clip_mask,WritePixelMask,(Image *) NULL,exception);
   (void) QueryColorCompliance("#0000",AllCompliance,
     &clip_mask->background_color,exception);