[arabic] Fix cluster merging

This commit is contained in:
Behdad Esfahbod 2017-10-07 13:17:33 +02:00
parent c2545b9215
commit 5f50f8837f
1 changed files with 1 additions and 1 deletions

View File

@ -676,7 +676,7 @@ reorder_marks_arabic (const hb_ot_shape_plan_t *plan,
DEBUG_MSG (ARABIC, buffer, "Shifting %d's: %d %d\n", cc, i, j);
hb_glyph_info_t temp[HB_OT_SHAPE_COMPLEX_MAX_COMBINING_MARKS];
assert (j - i <= ARRAY_LENGTH (temp));
buffer->merge_out_clusters (start, j);
buffer->merge_clusters (start, j);
memmove (temp, &info[i], (j - i) * sizeof (hb_glyph_info_t));
memmove (&info[start + j - i], &info[start], (i - start) * sizeof (hb_glyph_info_t));
memmove (&info[start], temp, (j - i) * sizeof (hb_glyph_info_t));