From: Cristy Date: Sun, 24 Mar 2019 11:38:01 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1506 X-Git-Tag: 7.0.8-35~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c0e2fb9d1b17cffdf208b3ad6009a271fd5fa49;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1506 --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 1fa505951..fbbab6406 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -1594,6 +1594,9 @@ static Image *DrawClippingMask(Image *image,const DrawInfo *draw_info, { clip_mask=DestroyImage(clip_mask); clip_mask=separate_mask; + status=NegateImage(clip_mask,MagickFalse,exception); + if (status == MagickFalse) + clip_mask=DestroyImage(clip_mask); } if (image->debug != MagickFalse) (void) LogMagickEvent(DrawEvent,GetMagickModule(),"end clip-path");