Fix reverse_range() to only reverse alt array if positions are used
In hb-coretext, when we were using scratch buffer for book-keeping, a reverse_range() caused by the notdef-insertion loop could mess up our log_clusters. Ouch!
This commit is contained in:
parent
1e03d7ac83
commit
8ac345e5c0
|
@ -454,7 +454,7 @@ hb_buffer_t::reverse_range (unsigned int start,
|
||||||
info[j] = t;
|
info[j] = t;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pos) {
|
if (have_positions) {
|
||||||
for (i = start, j = end - 1; i < j; i++, j--) {
|
for (i = start, j = end - 1; i < j; i++, j--) {
|
||||||
hb_glyph_position_t t;
|
hb_glyph_position_t t;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue