]> granicus.if.org Git - imagemagick/commitdiff
Render to clip mask rather than image for clip-path MVG graphics primitive
authorCristy <urban-warrior@imagemagick.org>
Thu, 24 Nov 2016 19:57:00 +0000 (14:57 -0500)
committerCristy <urban-warrior@imagemagick.org>
Thu, 24 Nov 2016 19:57:00 +0000 (14:57 -0500)
ChangeLog
MagickCore/draw.c

index c215faf83bc81a452e11e34e7ff234e968e37cd5..bb7fcd45749ad1da2c596c0b0d5c44a721a8cbf9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,7 @@
   * Permit EPT images with just a TIFF or EPS image, not both (reference
     https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=30921).
   * The -clone option no longer leaks memory.
+  * Render to clip mask rather than image for clip-path MVG graphics primitive.
 
 2016-11-15  7.0.3-7 Cristy  <quetzlzacatenango@image...>
   * Release ImageMagick version 7.0.3-7, GIT revision 19024:87aca83:20161115.
index 0026eb37596adcdbbb13682770c74415f07e8a30..2f05009f723e7e0f375a34a371a95c2348c9fd5c 100644 (file)
@@ -1434,9 +1434,9 @@ MagickExport MagickBooleanType DrawClipPath(Image *image,
     exception);
   clone_info->clip_mask=(char *) NULL;
   status=NegateImage(clip_mask,MagickFalse,exception);
+  status&=DrawImage(clip_mask,clone_info,exception);
   (void) SetImageMask(image,ReadPixelMask,clip_mask,exception);
   clip_mask=DestroyImage(clip_mask);
-  status&=DrawImage(image,clone_info,exception);
   clone_info=DestroyDrawInfo(clone_info);
   if (image->debug != MagickFalse)
     (void) LogMagickEvent(DrawEvent,GetMagickModule(),"end clip-path");