From 5ced012d9f58c51d557a835593c3277e35fe3b35 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 8 Jun 2012 20:31:32 -0400 Subject: [PATCH] Extend end when merging clusters in out-buffer --- src/hb-buffer.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc index 38eb95f8..2a984975 100644 --- a/src/hb-buffer.cc +++ b/src/hb-buffer.cc @@ -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; } -- GitLab