From e17553b84d8b22b14eba22fbe854f3d2bdc1020d Mon Sep 17 00:00:00 2001 From: Matthew Wilber Date: Fri, 9 Jan 2004 02:06:38 +0000 Subject: [PATCH] Fix for blank PNG images appearing in QuickRes. Apparently, when QuickRes asks for headerOnly, it really means that it wants the entire image. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5992 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/translators/pngtranslator/PNGTranslator.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/add-ons/translators/pngtranslator/PNGTranslator.cpp b/src/add-ons/translators/pngtranslator/PNGTranslator.cpp index d02059e087..962259c92f 100644 --- a/src/add-ons/translators/pngtranslator/PNGTranslator.cpp +++ b/src/add-ons/translators/pngtranslator/PNGTranslator.cpp @@ -538,9 +538,7 @@ translate_from_png_to_bits(BPositionIO *inSource, BPositionIO *outDestination, // to a different value, the above is what // will be returned from this function - bool bheaderonly, bdataonly; - bheaderonly = settings.SetGetHeaderOnly(); - bdataonly = settings.SetGetDataOnly(); + bool bheaderonly = false, bdataonly = false; // for storing decoded PNG row data uint8 **prows = NULL, *prow = NULL;