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>bb10
parent
f5a58cccc2
commit
8f88a3962a
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue