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:
7481bd4
)
Fix reverse_range() for empty range
author
Behdad Esfahbod
<behdad@behdad.org>
Fri, 20 Mar 2015 20:08:38 +0000
(16:08 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Fri, 20 Mar 2015 20:08:38 +0000
(16:08 -0400)
Fixes coretext notdef loop consisting of all default_ignorable glyphs
https://code.google.com/p/chromium/issues/detail?id=464755
src/hb-buffer.cc
patch
|
blob
|
history
diff --git
a/src/hb-buffer.cc
b/src/hb-buffer.cc
index
942177c
..
b9fe263
100644
(file)
--- a/
src/hb-buffer.cc
+++ b/
src/hb-buffer.cc
@@
-443,7
+443,7
@@
hb_buffer_t::reverse_range (unsigned int start,
{
unsigned int i, j;
- if (
start == end - 1
)
+ if (
end - start < 2
)
return;
for (i = start, j = end - 1; i < j; i++, j--) {