Fix reverse_range() to only reverse alt array if positions are used
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 3 Mar 2015 00:06:55 +0000 (16:06 -0800)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 3 Mar 2015 00:06:55 +0000 (16:06 -0800)
commit8ac345e5c0ed0aad6547592ea0839aabfb4ba980
tree0c959434f2e5326eb4d54690c66d34115b8a59aa
parent1e03d7ac83f3e17aafed1e37390d9ff8394e36da
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!
src/hb-buffer.cc