]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 1 Dec 2010 23:41:33 +0000 (23:41 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 1 Dec 2010 23:41:33 +0000 (23:41 +0000)
coders/png.c

index 8dd60aabcf22db43770f5338b32f46c1e3790e1d..8ce7ebb752eb5c47694fd85b5ded12eeb8eb5ccb 100644 (file)
@@ -7308,7 +7308,7 @@ static MagickBooleanType WriteOnePNGImage(MngInfo *mng_info,
 #endif
 
 #if (MAGICKCORE_QUANTUM_DEPTH >= 16)
-  if (image_depth == 16 && mng_info->write_png_colortype != 16)
+  if (image->depth == 16 && mng_info->write_png_colortype != 16)
     if (LosslessReduceDepthOK(image) != MagickFalse)
       image->depth = 8;
 #endif