summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpnghandler.cpp
diff options
context:
space:
mode:
authoraavit <qt-info@nokia.com>2011-04-01 20:48:38 (GMT)
committeraavit <qt-info@nokia.com>2011-04-01 20:48:38 (GMT)
commit8762acbbc65065a277921746b9aaccef066b1331 (patch)
tree838521d77aa8a2e4c606d00f212dc187d0d27d73 /src/gui/image/qpnghandler.cpp
parentab1a46a128e938303f41727e24d5681669ff9680 (diff)
parentc8851ce8e109fb6b403ae80036d9f319f1b69d7a (diff)
downloadQt-8762acbbc65065a277921746b9aaccef066b1331.zip
Qt-8762acbbc65065a277921746b9aaccef066b1331.tar.gz
Qt-8762acbbc65065a277921746b9aaccef066b1331.tar.bz2
Merge branch 'png151'
Diffstat (limited to 'src/gui/image/qpnghandler.cpp')
-rw-r--r--src/gui/image/qpnghandler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/image/qpnghandler.cpp b/src/gui/image/qpnghandler.cpp
index d88c437..c2a8b00 100644
--- a/src/gui/image/qpnghandler.cpp
+++ b/src/gui/image/qpnghandler.cpp
@@ -219,6 +219,7 @@ void setup_qt(QImage& image, png_structp png_ptr, png_infop info_ptr, float scre
png_colorp palette = 0;
int num_palette;
png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, 0, 0, 0);
+ png_set_interlace_handling(png_ptr);
if (color_type == PNG_COLOR_TYPE_GRAY) {
// Black & White or 8-bit grayscale