From a0363ba99d1dc99a306becf0898e7361c76df844 Mon Sep 17 00:00:00 2001 From: peri4 Date: Mon, 23 Jan 2023 11:14:51 +0300 Subject: [PATCH] ImageView big images fix --- libs/widgets/image_view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/widgets/image_view.cpp b/libs/widgets/image_view.cpp index e3637aa..d227fdf 100644 --- a/libs/widgets/image_view.cpp +++ b/libs/widgets/image_view.cpp @@ -137,7 +137,7 @@ void ImageView::adjustView() { #if QT_VERSION_MAJOR >= 5 ws *= devicePixelRatio(); #endif - int nw = map.size().boundedTo(ws).width(); + int nw = map.size().width(); item->setScale(1.); if (nw > 0) { qreal mp = map.width() / nw;