Fix rendering error in some glyphs

Caused by a spelling mistake in the calculation.

Pick-to: 5.15
Pick-to: 5.12
Change-Id: I69445fcd8a45b60c34d51aa09d778d4fee447065
Reviewed-by: Liang Qi <liang.qi@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
Pengfei Zhang 2020-07-04 02:19:24 +08:00 committed by Liang Qi
parent 6ce2f3f26b
commit 8936918a65

View File

@ -790,7 +790,7 @@ static void convertPath(const QPainterPath &path, QVector<TTF_POINT> *points, QV
// see if we can optimize out the last onCurve point
int mx = (points->at(points->size() - 2).x + base[2].x) >> 1;
int my = (points->at(points->size() - 2).y + base[2].y) >> 1;
if (qAbs(mx - base[3].x) <= split_limit && qAbs(my = base[3].y) <= split_limit)
if (qAbs(mx - base[3].x) <= split_limit && qAbs(my - base[3].y) <= split_limit)
points->takeLast();
try_reduce = false;
}