From 466387e400581cc86248b179b45e73186d6e200f Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sun, 18 Feb 2018 19:16:54 +0100 Subject: [PATCH] Also remove the ReadPixelMask. --- MagickCore/draw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/MagickCore/draw.c b/MagickCore/draw.c index d2ca466f1..3120c0bbc 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -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); -- 2.40.0