ImageView fix

This commit is contained in:
2020-08-18 17:02:14 +03:00
parent 0ec173d9bb
commit 0f6bc121aa

View File

@@ -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);