From 97b47bed36987cd0310622b0023875dfb2e73bf8 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sun, 18 Feb 2018 19:13:34 +0100 Subject: [PATCH] Fixed clearing the clip_mask. --- MagickCore/draw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 9fa3e1dff..d2ca466f1 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,WritePixelMask,(Image *) NULL,exception); (void) QueryColorCompliance("#0000",AllCompliance, &clip_mask->background_color,exception); clip_mask->background_color.alpha=(MagickRealType) TransparentAlpha; -- 2.40.0