]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 2 Oct 2016 15:07:10 +0000 (11:07 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 2 Oct 2016 15:07:10 +0000 (11:07 -0400)
MagickCore/draw.c
coders/gradient.c

index 42f8fcbedd7caf246fab84eef55795ebb484ad73..f12760db522c71c5cd5b271d6ccabf47f4c41085 100644 (file)
@@ -1757,6 +1757,7 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info,
   if (primitive == (char *) NULL)
     return(MagickFalse);
   primitive_extent=(double) strlen(primitive);
+  (void) SetImageArtifact(image,"MVG",primitive);
   n=0;
   number_stops=0;
   stops=(StopInfo *) NULL;
index 6324bdcfd995b6c2fa6efcdfe97ec333d705fcb0..d28d0ea0af11f0ba5d318b0813205a7cd8d53fc6 100644 (file)
@@ -132,7 +132,8 @@ static Image *ReadGRADIENTImage(const ImageInfo *image_info,
   if (image == (Image *) NULL)
     return((Image *) NULL);
   (void) SetImageAlpha(image,(Quantum) TransparentAlpha,exception);
-  (void) CopyMagickString(image->filename,image_info->filename,MagickPathExtent);
+  (void) CopyMagickString(image->filename,image_info->filename,
+    MagickPathExtent);
   icc_color=MagickFalse;
   if (LocaleCompare(colorname,"icc") == 0)
     {
@@ -145,7 +146,8 @@ static Image *ReadGRADIENTImage(const ImageInfo *image_info,
     ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
   stops[0].offset=0.0;
   stops[1].offset=1.0;
-  status=QueryColorCompliance(colorname,AllCompliance,&stops[0].color,exception);
+  status=QueryColorCompliance(colorname,AllCompliance,&stops[0].color,
+    exception);
   if (status == MagickFalse)
     {
       stops=(StopInfo *) RelinquishMagickMemory(stops);
@@ -160,7 +162,8 @@ static Image *ReadGRADIENTImage(const ImageInfo *image_info,
     (void) sscanf(image_info->filename,"%*[^-]-%[^-]",colorname);
   else
     (void) sscanf(image_info->filename,"%*[^-]-%*[^-]-%[^-]",colorname);
-  status=QueryColorCompliance(colorname,AllCompliance,&stops[1].color,exception);
+  status=QueryColorCompliance(colorname,AllCompliance,&stops[1].color,
+    exception);
   if (status == MagickFalse)
     {
       stops=(StopInfo *) RelinquishMagickMemory(stops);