]> granicus.if.org Git - imagemagick/commitdiff
Fix for variable used in SetQuantumDepth.
authordirk <dirk@git.imagemagick.org>
Sun, 6 Mar 2016 09:07:08 +0000 (10:07 +0100)
committerdirk <dirk@git.imagemagick.org>
Sun, 6 Mar 2016 09:07:08 +0000 (10:07 +0100)
coders/png.c

index 7afcf2b2df1c87299d3978910b7c15a60776aa46..1b6ce618add06526b7520d92186518bd74f1f633 100644 (file)
@@ -10870,7 +10870,7 @@ static MagickBooleanType WriteOnePNGImage(MngInfo *mng_info,
   if (quantum_info == (QuantumInfo *) NULL)
     png_error(ping,"Memory allocation for quantum_info failed");
   quantum_info->format=UndefinedQuantumFormat;
-  SetQuantumDepth(image,quantum_info,image->depth);
+  SetQuantumDepth(image,quantum_info,image_depth);
   (void) SetQuantumEndian(image,quantum_info,MSBEndian);
   num_passes=png_set_interlace_handling(ping);