Skip to content

Commit fa71729

Browse files
author
aavit
committed
Avoid runtime warning about interlace handling from libpng 1.5
Task-number: QTBUG-13298, QTBUG-21408 (cherry picked from commit c8851ce)
1 parent b62dc32 commit fa71729

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gui/image/qpnghandler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ void setup_qt(QImage& image, png_structp png_ptr, png_infop info_ptr, float scre
217217
png_colorp palette = 0;
218218
int num_palette;
219219
png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, 0, 0, 0);
220+
png_set_interlace_handling(png_ptr);
220221

221222
if (color_type == PNG_COLOR_TYPE_GRAY) {
222223
// Black & White or 8-bit grayscale

0 commit comments

Comments
 (0)