Extend end when merging clusters in out-buffer

This commit is contained in:
Behdad Esfahbod 2012-06-08 20:31:32 -04:00
parent 72c0a18783
commit 5ced012d9f
1 changed files with 4 additions and 0 deletions

View File

@ -464,6 +464,10 @@ hb_buffer_t::merge_out_clusters (unsigned int start,
while (start && out_info[start - 1].cluster == out_info[start].cluster)
start--;
/* Extend end */
while (end < out_len && out_info[end - 1].cluster == out_info[end].cluster)
end++;
for (unsigned int i = start; i < end; i++)
out_info[i].cluster = cluster;
}