Only compare styleNames if they are not empty
Task-number: QTBUG-19366 (cherry picked from commit 15e6ac8f4d9e7a419cd0c10405954bde78559fac) Change-Id: I5f06bb5133f23dbc8ad6d745d44ca0a85ef49686 Reviewed-on: http://codereview.qt.nokia.com/760 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
This commit is contained in:
parent
f1c49cd12d
commit
bb6be57b38
@ -147,7 +147,7 @@ bool QFontDef::exactMatch(const QFontDef &other) const
|
||||
&& weight == other.weight
|
||||
&& style == other.style
|
||||
&& this_family == other_family
|
||||
&& styleName == other.styleName
|
||||
&& (styleName.isEmpty() || other.styleName.isEmpty() || styleName == other.styleName)
|
||||
&& (this_foundry.isEmpty()
|
||||
|| other_foundry.isEmpty()
|
||||
|| this_foundry == other_foundry)
|
||||
|
@ -113,7 +113,7 @@ struct QFontDef
|
||||
&& styleStrategy == other.styleStrategy
|
||||
&& ignorePitch == other.ignorePitch && fixedPitch == other.fixedPitch
|
||||
&& family == other.family
|
||||
&& styleName == other.styleName
|
||||
&& (styleName.isEmpty() || other.styleName.isEmpty() || styleName == other.styleName)
|
||||
&& hintingPreference == other.hintingPreference
|
||||
#ifdef Q_WS_X11
|
||||
&& addStyle == other.addStyle
|
||||
|
Loading…
Reference in New Issue
Block a user