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
Allan Sandfeld Jensen 2020-03-30 17:20:35 +02:00
parent f5a58cccc2
commit 8f88a3962a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}