[Indic] Fix cluster formation with left-matras and conjunct forms

Test case was: <U+0D15,U+0D4D,U+0D15,U+0D4A>.
This commit is contained in:
Behdad Esfahbod 2012-07-23 08:22:55 -04:00
parent e6b01a878c
commit 2cc933aff9
1 changed files with 2 additions and 2 deletions

View File

@ -882,11 +882,11 @@ final_reordering_syllable (hb_buffer_t *buffer,
info[new_pos] = tmp; info[new_pos] = tmp;
new_pos--; new_pos--;
} }
buffer->merge_clusters (new_pos, base); buffer->merge_clusters (new_pos, MIN (end, base + 1));
} else { } else {
for (unsigned int i = start; i < base; i++) for (unsigned int i = start; i < base; i++)
if (info[i].indic_position () == POS_PRE_M) { if (info[i].indic_position () == POS_PRE_M) {
buffer->merge_clusters (i, base); buffer->merge_clusters (i, MIN (end, base + 1));
break; break;
} }
} }