Followup fix for variation-selectors

Patch from Jonathan Kew
This commit is contained in:
Behdad Esfahbod 2010-06-03 11:37:51 -04:00
parent a224b4d502
commit f2a1b411b1
1 changed files with 2 additions and 1 deletions

View File

@ -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 ();
}