Do not use qRound with integers
authorOlivier Goffart <olivier.goffart@nokia.com>
Wed, 13 Jul 2011 08:40:36 +0000 (10:40 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 20 Jul 2011 08:29:05 +0000 (10:29 +0200)
Required for https://qt.gitorious.org/qt/qtbase/merge_requests/17

Change-Id: I5319ea99eb083c5931c55a246f7057fbc88c8fa4
Reviewed-by: Thiago
Reviewed-on: http://codereview.qt.nokia.com/1866
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
src/gui/text/qfontdatabase_mac.cpp

index e1e59b7..6876fae 100644 (file)
@@ -334,7 +334,7 @@ void QFontDatabase::load(const QFontPrivate *d, int script)
         return;
 
     // set it to the actual pointsize, so QFontInfo will do the right thing
-    req.pointSize = qRound(qt_mac_pointsize(d->request, d->dpi));
+    req.pointSize = qt_mac_pointsize(d->request, d->dpi);
 
     QFontEngine *e = QFontCache::instance()->findEngine(key);
     if(!e && qt_enable_test_font && req.family == QLatin1String("__Qt__Box__Engine__")) {