[buffer] Fix reverse_group() to reverse() at the end

This commit is contained in:
Behdad Esfahbod 2021-12-10 14:59:56 -07:00
parent 21c4fc1011
commit 5b995526f7
1 changed files with 2 additions and 2 deletions

View File

@ -216,8 +216,6 @@ struct hb_buffer_t
if (unlikely (!len)) if (unlikely (!len))
return; return;
reverse ();
unsigned start = 0; unsigned start = 0;
unsigned i; unsigned i;
for (i = 1; i < len; i++) for (i = 1; i < len; i++)
@ -233,6 +231,8 @@ struct hb_buffer_t
if (merge_clusters) if (merge_clusters)
this->merge_clusters (start, i); this->merge_clusters (start, i);
reverse_range (start, i); reverse_range (start, i);
reverse ();
} }
template <typename FuncType> template <typename FuncType>