From 2002f4e7e94af8fce1b6e6d95b95cb3905166391 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sat, 23 Oct 2021 00:22:41 +0200 Subject: [PATCH] Relax the check for non square DPI BUGS: 444168 --- core/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/utils.cpp b/core/utils.cpp index 0304b502a..782922b81 100644 --- a/core/utils.cpp +++ b/core/utils.cpp @@ -51,7 +51,7 @@ QSizeF Utils::realDpi(QWidget *widgetOnScreen) if (screen) { const QSizeF res(screen->physicalDotsPerInchX(), screen->physicalDotsPerInchY()); if (res.width() > 0 && res.height() > 0) { - if (qAbs(res.width() - res.height()) / qMin(res.height(), res.width()) < 0.05) { + if (qAbs(res.width() - res.height()) / qMin(res.height(), res.width()) < 0.15) { return res; } else { qCDebug(OkularCoreDebug) << "QScreen calculation returned a non square dpi." << res << ". Falling back";