]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1506
authorCristy <mikayla-grace@urban-warrior.org>
Sun, 24 Mar 2019 11:38:01 +0000 (07:38 -0400)
committerCristy <mikayla-grace@urban-warrior.org>
Sun, 24 Mar 2019 11:38:01 +0000 (07:38 -0400)
MagickCore/draw.c

index 1fa505951528cff3a1979bb65db5d5694a516720..fbbab6406dff23a87c12399deb0b8def1c62b489 100644 (file)
@@ -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");