[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [Rekonq] [BAD EMAIL] 7ada4c8: fix compute font size
From:       megabigbug <megabigbug () arrakis ! mail ! kde ! org (none)>
Date:       2010-05-31 23:27:04
Message-ID: 201005312327.o4VNR4Ui021525 () kore ! kollide ! net
[Download RAW message or body]

commit 7ada4c8c6afe5b47b50b4b1960ddfbcca75f5230
Author: megabigbug <megabigbug@arrakis.(none)>
Date:   Sun May 30 16:50:12 2010 +0200

    fix compute font size

diff --git a/src/application.cpp b/src/application.cpp
index fb52dc5..732bb27 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) );
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic