Fixed inifinite loop introduced in 7403e055cd
k is the index, not j. Reported by Tom Hacohen.
This commit is contained in:
parent
51881a61ca
commit
21deab2bdc
|
@ -1553,12 +1553,12 @@ fix_mark_attachment (hb_glyph_position_t *pos, unsigned int i, hb_direction_t di
|
||||||
pos[i].y_offset += pos[j].y_offset;
|
pos[i].y_offset += pos[j].y_offset;
|
||||||
|
|
||||||
if (HB_DIRECTION_IS_FORWARD (direction))
|
if (HB_DIRECTION_IS_FORWARD (direction))
|
||||||
for (unsigned int k = j; k < i; j++) {
|
for (unsigned int k = j; k < i; k++) {
|
||||||
pos[i].x_offset -= pos[k].x_advance;
|
pos[i].x_offset -= pos[k].x_advance;
|
||||||
pos[i].y_offset -= pos[k].y_advance;
|
pos[i].y_offset -= pos[k].y_advance;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
for (unsigned int k = j + 1; k < i + 1; j++) {
|
for (unsigned int k = j + 1; k < i + 1; k++) {
|
||||||
pos[i].x_offset += pos[k].x_advance;
|
pos[i].x_offset += pos[k].x_advance;
|
||||||
pos[i].y_offset += pos[k].y_advance;
|
pos[i].y_offset += pos[k].y_advance;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue