From 3544fe468cdbab52b4d1c96fd1f1e45e233e6a2e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 26 Jun 2010 18:53:54 -0600 Subject: [PATCH] Fix #5980 (Reflection in Cover Browser not reflecting cropped bottom edge) --- src/calibre/gui2/pictureflow/pictureflow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/pictureflow/pictureflow.cpp b/src/calibre/gui2/pictureflow/pictureflow.cpp index a100f60e75..d9d8fefef4 100644 --- a/src/calibre/gui2/pictureflow/pictureflow.cpp +++ b/src/calibre/gui2/pictureflow/pictureflow.cpp @@ -579,7 +579,7 @@ void PictureFlowPrivate::resetSlides() static QImage prepareSurface(QImage img, int w, int h) { Qt::TransformationMode mode = Qt::SmoothTransformation; - img = img.scaled(w, h, Qt::KeepAspectRatioByExpanding, mode); + img = img.scaled(w, h, Qt::IgnoreAspectRatio, mode); // slightly larger, to accommodate for the reflection int hs = int(h * REFLECTION_FACTOR);