summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/application.cpp b/src/application.cpp
index fb52dc51..9620feb8 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -447,8 +447,13 @@ void Application::updateConfiguration()
int defaultFontSize = ReKonfig::defaultFontSize();
int minimumFontSize = ReKonfig::minFontSize();
- float toPix = mainWindow()->currentTab()->view()->logicalDpiY()/72.0;
+ int logDpiY = mainWindow()->currentTab()->view()->logicalDpiY();
+ kDebug() << "Logical Dot per Inch Y: " << logDpiY;
+ float toPix = (logDpiY < 96.0)
+ ? 96.0/72.0
+ : logDpiY/72.0 ;
+
defaultSettings->setFontSize(QWebSettings::DefaultFontSize, qRound(defaultFontSize * toPix) );
defaultSettings->setFontSize(QWebSettings::MinimumFontSize, qRound(minimumFontSize * toPix) );