Index: third_party/harfbuzz-ng/src/hb-ot-shape-complex-use.cc |
diff --git a/third_party/harfbuzz-ng/src/hb-ot-shape-complex-use.cc b/third_party/harfbuzz-ng/src/hb-ot-shape-complex-use.cc |
index 41eb43ffb6948f5bd67f0d1cca7c2a02762a7a4b..4b15deedd48f2b2fd83e53ed31b893d89d57f160 100644 |
--- a/third_party/harfbuzz-ng/src/hb-ot-shape-complex-use.cc |
+++ b/third_party/harfbuzz-ng/src/hb-ot-shape-complex-use.cc |
@@ -436,10 +436,10 @@ reorder_syllable (hb_buffer_t *buffer, unsigned int start, unsigned int end) |
if (info[i].use_category() == USE_H) |
i--; |
+ buffer->merge_clusters (start, i + 1); |
hb_glyph_info_t t = info[start]; |
memmove (&info[start], &info[start + 1], (i - start) * sizeof (info[0])); |
info[i] = t; |
- buffer->merge_clusters (start, i + 1); |
break; |
} |
@@ -464,10 +464,10 @@ reorder_syllable (hb_buffer_t *buffer, unsigned int start, unsigned int end) |
0 == _hb_glyph_info_get_lig_comp (&info[i]) && |
j < i) |
{ |
+ buffer->merge_clusters (j, i + 1); |
hb_glyph_info_t t = info[i]; |
memmove (&info[j + 1], &info[j], (i - j) * sizeof (info[0])); |
info[j] = t; |
- buffer->merge_clusters (j, i + 1); |
} |
} |
} |