]> granicus.if.org Git - imagemagick/commitdiff
Removed 3 redundant lines of code from coders/png.c
authorglennrp <glennrp@git.imagemagick.org>
Thu, 12 Jan 2012 18:41:37 +0000 (18:41 +0000)
committerglennrp <glennrp@git.imagemagick.org>
Thu, 12 Jan 2012 18:41:37 +0000 (18:41 +0000)
coders/png.c

index c4ebd84b0c29e5d9b7d9aa48aaff034132867414..6c728063dd73e0f8993b10015ffa60ec25fd60da 100644 (file)
@@ -3356,10 +3356,6 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
       image->storage_class=DirectClass;
     }
 
-  if ((ping_color_type == PNG_COLOR_TYPE_GRAY) ||
-      (ping_color_type == PNG_COLOR_TYPE_GRAY_ALPHA))
-    image->colorspace=GRAYColorspace;
-
   for (j = 0; j < 2; j++)
   {
     if (j == 0)