Commit 6be61a4b authored by Méven Car's avatar Méven Car
Browse files

Thumbnail folders: scale down sub image when their height is too big

BUG: 419566
FIXED-IN: 20.08
parent c3b8ed59
......@@ -411,6 +411,8 @@ void ThumbnailProtocol::drawPictureFrame(QPainter *painter, const QPoint &center
if ((image.size().width() > imageTargetSize.width()) && (imageTargetSize.width() != 0)) {
scaling = float(imageTargetSize.width()) / float(image.size().width());
} else if ((image.size().height() > imageTargetSize.height()) && (imageTargetSize.height() != 0)) {
scaling = float(imageTargetSize.height()) / float(image.size().height());
}
QImage frame(imageTargetSize + QSize(frameWidth * 2, frameWidth * 2),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment