Skip to content

Commit 8f88a39

Browse files
author
Allan Sandfeld Jensen
committed
Fix 1 pixel wide images
Images are rounded up to 4 bytes per line minimum, so one pixel wide images might not shrink when resizing. Fixes: QTBUG-83179 Change-Id: If72c94409e4c899c5ad05b2867f5f53a94d0580f Reviewed-by: Christian Kamm <mail@ckamm.de>
1 parent f5a58cc commit 8f88a39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/image/qimage_conversions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ bool convert_generic_inplace(QImageData *data, QImage::Format dst_format, Qt::Im
426426
data->nbytes = params.totalSize;
427427
}
428428
data->bytes_per_line = params.bytesPerLine;
429-
data->depth = destDepth;
430429
}
430+
data->depth = destDepth;
431431
data->format = dst_format;
432432
return true;
433433
}

0 commit comments

Comments
 (0)