]> granicus.if.org Git - imagemagick/commitdiff
*image instead if image in SetImageProperty in wand/mogrify.c
authorglennrp <glennrp@git.imagemagick.org>
Thu, 23 Dec 2010 22:42:52 +0000 (22:42 +0000)
committerglennrp <glennrp@git.imagemagick.org>
Thu, 23 Dec 2010 22:42:52 +0000 (22:42 +0000)
wand/mogrify.c

index 3baf91720b957dede9fdc38cafa731e7dba273d3..19f113a80b9a2260a41c068b7dbfd9c2c9a6e347 100644 (file)
@@ -3161,15 +3161,15 @@ WandExport MagickBooleanType MogrifyImage(ImageInfo *image_info,const int argc,
               Strip image of profiles and comments.
             */
             (void) SyncImageSettings(mogrify_info,*image);
-            (void) StripImage(*image);
 
 #if 1 /* This was emporarily moved from image.c, where we don't have access
          to image_info
        */
 
-  (void) SetImageProperty(image_info,"png:include-chunk","none,gama");
+  (void) SetImageProperty(*image,"png:include-chunk","none,gama");
 
 #endif
+            (void) StripImage(*image);
             InheritException(exception,&(*image)->exception);
             break;
           }