summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2010-05-30 16:50:12 +0200
committermegabigbug <megabigbug@arrakis.(none)>2010-05-30 16:50:12 +0200
commit7ada4c8c6afe5b47b50b4b1960ddfbcca75f5230 (patch)
tree57bd9d223c2e07f0861c4068173006cd2e3841c7
parentMerge branch 'master' of gitorious.org:rekonq/mainline (diff)
downloadrekonq-7ada4c8c6afe5b47b50b4b1960ddfbcca75f5230.tar.xz
fix compute font size
-rw-r--r--src/application.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/application.cpp b/src/application.cpp
index fb52dc51..732bb273 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -448,7 +448,10 @@ void Application::updateConfiguration()
int minimumFontSize = ReKonfig::minFontSize();
float toPix = mainWindow()->currentTab()->view()->logicalDpiY()/72.0;
-
+
+ if (toPix < 96.0/72.0)
+ toPix = 96.0/72.0;
+
defaultSettings->setFontSize(QWebSettings::DefaultFontSize, qRound(defaultFontSize * toPix) );
defaultSettings->setFontSize(QWebSettings::MinimumFontSize, qRound(minimumFontSize * toPix) );