From 9cb59d460e80d769087045535a8d54ec9ed7985c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 16 Oct 2013 11:34:07 +0200 Subject: [PATCH] [indic] Fix cluster merging of left matras The merge_clusters there was totally broken. --- src/hb-ot-shape-complex-indic.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index 516272cf4..f11182693 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -1298,9 +1298,9 @@ final_reordering_syllable (const hb_ot_shape_plan_t *plan, info[new_pos] = tmp; if (old_pos < base && base <= new_pos) /* Shouldn't actually happen. */ base--; + buffer->merge_clusters (new_pos, MIN (end, base + 1)); new_pos--; } - buffer->merge_clusters (new_pos, MIN (end, base + 1)); } else { for (unsigned int i = start; i < base; i++) if (info[i].indic_position () == POS_PRE_M) {