[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))
return;
reverse ();
unsigned start = 0;
unsigned i;
for (i = 1; i < len; i++)
@ -233,6 +231,8 @@ struct hb_buffer_t
if (merge_clusters)
this->merge_clusters (start, i);
reverse_range (start, i);
reverse ();
}
template <typename FuncType>