View | Details | Raw Unified
Collapse All | Expand All

(-) pngrtran.c.ori (-2 / +4 lines)
 Lines 1293-1301    Link Here 
      if(rgb_error)
      if(rgb_error)
      {
      {
         png_ptr->rgb_to_gray_status=1;
         png_ptr->rgb_to_gray_status=1;
         if(png_ptr->transformations & PNG_RGB_TO_GRAY_WARN)
         if((png_ptr->transformations & PNG_RGB_TO_GRAY) ==
             PNG_RGB_TO_GRAY_WARN)
            png_warning(png_ptr, "png_do_rgb_to_gray found nongray pixel");
            png_warning(png_ptr, "png_do_rgb_to_gray found nongray pixel");
         if(png_ptr->transformations & PNG_RGB_TO_GRAY_ERR)
         if((png_ptr->transformations & PNG_RGB_TO_GRAY) ==
             PNG_RGB_TO_GRAY_ERR)
            png_error(png_ptr, "png_do_rgb_to_gray found nongray pixel");
            png_error(png_ptr, "png_do_rgb_to_gray found nongray pixel");
      }
      }
   }
   }