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:
parent
fd70978693
commit
d5ac97e36f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user