From 2cc933aff97916e5d0fe42883f40f0879f848e25 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 23 Jul 2012 08:22:55 -0400 Subject: [PATCH] [Indic] Fix cluster formation with left-matras and conjunct forms Test case was: . --- src/hb-ot-shape-complex-indic.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index 2e0b88fb..6ba9c16a 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -882,11 +882,11 @@ final_reordering_syllable (hb_buffer_t *buffer, info[new_pos] = tmp; new_pos--; } - buffer->merge_clusters (new_pos, base); + 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) { - buffer->merge_clusters (i, base); + buffer->merge_clusters (i, MIN (end, base + 1)); break; } } -- GitLab