summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-03-30 17:20:35 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-03-30 20:55:11 +0200
commit8f88a3962a7b1716d2c0482b818d2504776ece05 (patch)
tree0b7182b154094ce488da4c80e8080f800552f53f /src
parentf5a58cccc2dad567ddda2fe621f21352781852f0 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/gui/image/qimage_conversions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/image/qimage_conversions.cpp b/src/gui/image/qimage_conversions.cpp
index 6ddd08d08d..853bbe4f8e 100644
--- a/src/gui/image/qimage_conversions.cpp
+++ b/src/gui/image/qimage_conversions.cpp
@@ -426,8 +426,8 @@ bool convert_generic_inplace(QImageData *data, QImage::Format dst_format, Qt::Im
data->nbytes = params.totalSize;
}
data->bytes_per_line = params.bytesPerLine;
- data->depth = destDepth;
}
+ data->depth = destDepth;
data->format = dst_format;
return true;
}