From: Dirk Lemstra Date: Sun, 18 Feb 2018 18:13:34 +0000 (+0100) Subject: Fixed clearing the clip_mask. X-Git-Tag: 7.0.7-23~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97b47bed36987cd0310622b0023875dfb2e73bf8;p=imagemagick Fixed clearing the clip_mask. --- 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;