Skip to content

Commit

Permalink
Fix 1 pixel wide images
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Allan Sandfeld Jensen committed Mar 30, 2020
1 parent f5a58cc commit 8f88a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/image/qimage_conversions.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8f88a39

Please sign in to comment.