projects
/
apps
/
home
/
video-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a224b4d
)
Followup fix for variation-selectors
author
Behdad Esfahbod
<behdad@behdad.org>
Thu, 3 Jun 2010 15:37:51 +0000
(11:37 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Thu, 3 Jun 2010 15:37:51 +0000
(11:37 -0400)
Patch from Jonathan Kew
src/hb-ot-shape.cc
patch
|
blob
|
history
diff --git
a/src/hb-ot-shape.cc
b/src/hb-ot-shape.cc
index
77724ce
..
027f725
100644
(file)
--- a/
src/hb-ot-shape.cc
+++ b/
src/hb-ot-shape.cc
@@
-484,7
+484,8
@@
hb_map_glyphs (hb_font_t *font,
buffer->add_output_glyph (hb_font_get_glyph (font, face, buffer->info[buffer->i].codepoint, 0));
}
}
- buffer->add_output_glyph (hb_font_get_glyph (font, face, buffer->info[buffer->i].codepoint, 0));
+ if (likely (buffer->i < buffer->len))
+ buffer->add_output_glyph (hb_font_get_glyph (font, face, buffer->info[buffer->i].codepoint, 0));
buffer->swap ();
}