From 0f6bc121aa98e00eab0ea01ef4376ead56e78ac8 Mon Sep 17 00:00:00 2001 From: andrey Date: Tue, 18 Aug 2020 17:02:14 +0300 Subject: [PATCH] ImageView fix --- qad/widgets/image_view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qad/widgets/image_view.cpp b/qad/widgets/image_view.cpp index 57dc59f..41d90cd 100644 --- a/qad/widgets/image_view.cpp +++ b/qad/widgets/image_view.cpp @@ -126,7 +126,7 @@ bool ImageView::eventFilter(QObject * o, QEvent * e) { void ImageView::adjustView() { qreal mp = map.width() / map.size().boundedTo(size()).width(); - if (mp > 2) { + if (mp > 1) { item.setPixmap(map.scaled(map.size()/mp, Qt::KeepAspectRatio, Qt::SmoothTransformation)); } else { item.setPixmap(map);