diff --git a/src/utilities/imageutils.cpp b/src/utilities/imageutils.cpp index b6931b215..7563a9b7f 100644 --- a/src/utilities/imageutils.cpp +++ b/src/utilities/imageutils.cpp @@ -166,6 +166,7 @@ QImage ImageUtils::ScaleAndPad(const QImage &image, const bool scale, const bool } image_scaled.setDevicePixelRatio(device_pixel_ratio); + return image_scaled; } diff --git a/src/utilities/imageutils.h b/src/utilities/imageutils.h index 55d7b1c70..edc4ad12c 100644 --- a/src/utilities/imageutils.h +++ b/src/utilities/imageutils.h @@ -41,7 +41,7 @@ class ImageUtils { static QByteArray SaveImageToJpegData(const QImage &image = QImage()); static QByteArray FileToJpegData(const QString &filename); static QPixmap TryLoadPixmap(const QUrl &automatic, const QUrl &manual, const QUrl &url = QUrl()); - static QImage ScaleAndPad(const QImage &image, const bool scale, const bool pad, const int desired_height, const qreal device_pixel_ratio = 1.0f); + static QImage ScaleAndPad(const QImage &image, const bool scale, const bool pad, const int desired_height, const qreal device_pixel_ratio = 1.0F); static QImage CreateThumbnail(const QImage &image, const bool pad, const QSize size); static QImage GenerateNoCoverImage(const QSize size = QSize());