Fix font-weight regression

Do not override the requested font-weight. This was a wrong rewrite of
a now redundant if-statement.

Change-Id: I20a745cac02d896fdeaa853f20c6b6647084fceb
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
Allan Sandfeld Jensen 2016-06-02 11:22:32 +02:00 committed by Jake Petroules
parent fd70978693
commit d5ac97e36f

View File

@ -2730,7 +2730,6 @@ void QFontDatabase::load(const QFontPrivate *d, int script)
}
if (req.pointSize < 0)
req.pointSize = req.pixelSize*72.0/d->dpi;
req.weight = QFont::Normal;
if (req.stretch == 0)
req.stretch = 100;