Do not use qRound with integers
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>
This commit is contained in:
parent
acc16fe345
commit
a39ca22b4d
@ -334,7 +334,7 @@ void QFontDatabase::load(const QFontPrivate *d, int script)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// set it to the actual pointsize, so QFontInfo will do the right thing
|
// 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);
|
QFontEngine *e = QFontCache::instance()->findEngine(key);
|
||||||
if(!e && qt_enable_test_font && req.family == QLatin1String("__Qt__Box__Engine__")) {
|
if(!e && qt_enable_test_font && req.family == QLatin1String("__Qt__Box__Engine__")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user