[buffer] Fix reverse_group() to reverse() at the end
This commit is contained in:
parent
21c4fc1011
commit
5b995526f7
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue