From c3e7832d857e9c3e2a423bbd6892f95d661c27b9 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 7 Dec 2003 04:21:58 +0000 Subject: [PATCH] correct gamma test thanks to Grievre --- libs/image/png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/image/png.c b/libs/image/png.c index fa16a1d53..1006738ee 100644 --- a/libs/image/png.c +++ b/libs/image/png.c @@ -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