[QFontEngineFT::loadGlyph] Fix reversed condition.

Introduced by 237cb0d082
(Consolidate paths for fetchMetricsOnly cases).

Task-number: QTBUG-45444
Change-Id: Icd642c09490f1cfc5804313d60d467290ae599ba
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
This commit is contained in:
Friedemann Kleint 2015-04-08 09:12:39 +02:00
parent a60571b370
commit a21a24ee48

View File

@ -804,12 +804,12 @@ int QFontEngineFT::loadFlags(QGlyphSet *set, GlyphFormat format, int flags,
static inline bool areMetricsTooLarge(const QFontEngineFT::GlyphInfo &info) static inline bool areMetricsTooLarge(const QFontEngineFT::GlyphInfo &info)
{ {
// false if exceeds QFontEngineFT::Glyph metrics // false if exceeds QFontEngineFT::Glyph metrics
return (short)(info.linearAdvance) == info.linearAdvance return (short)(info.linearAdvance) != info.linearAdvance
&& (signed char)(info.xOff) == info.xOff || (signed char)(info.xOff) != info.xOff
&& (uchar)(info.width) == info.width || (uchar)(info.width) != info.width
&& (uchar)(info.height) == info.height || (uchar)(info.height) != info.height
&& (signed char)(info.x) == info.x || (signed char)(info.x) != info.x
&& (signed char)(info.y) == info.y; || (signed char)(info.y) != info.y;
} }
QFontEngineFT::Glyph *QFontEngineFT::loadGlyph(QGlyphSet *set, uint glyph, QFontEngineFT::Glyph *QFontEngineFT::loadGlyph(QGlyphSet *set, uint glyph,