correct gamma test thanks to Grievre

This commit is contained in:
Bill Currie 2003-12-07 04:21:58 +00:00
parent 09143b7fb1
commit c3e7832d85

View file

@ -148,7 +148,7 @@ LoadPNG (QFile *infile)
* this file may have come from--so if it doesn't have a file gamma, don't
* do any correction ("do no harm")
*/
if (!png_get_gAMA(png_ptr, info_ptr, &gamma))
if (png_get_gAMA(png_ptr, info_ptr, &gamma))
png_set_gamma (png_ptr, 1.0, gamma);
/* All transformations have been registered, now update the info_ptr