projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e03d7a
)
Fix reverse_range() to only reverse alt array if positions are used
author
Behdad Esfahbod
<behdad@behdad.org>
Tue, 3 Mar 2015 00:06:55 +0000
(16:06 -0800)
committer
Behdad Esfahbod
<behdad@behdad.org>
Tue, 3 Mar 2015 00:06:55 +0000
(16:06 -0800)
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
patch
|
blob
|
history
diff --git
a/src/hb-buffer.cc
b/src/hb-buffer.cc
index
0500aa2
..
942177c
100644
(file)
--- a/
src/hb-buffer.cc
+++ b/
src/hb-buffer.cc
@@
-454,7
+454,7
@@
hb_buffer_t::reverse_range (unsigned int start,
info[j] = t;
}
- if (
po
s) {
+ if (
have_position
s) {
for (i = start, j = end - 1; i < j; i++, j--) {
hb_glyph_position_t t;