Fix the crash on #582. Combining characters are still not shown because this is not implemented. With @sonwow

This commit is contained in:
june0cho 2013-11-12 21:28:59 +09:00
parent 433f19f5a3
commit ee5ff3f312

View file

@ -334,7 +334,7 @@ impl Shaper {
let mut max_glyph_idx = glyph_span.end();
for i in char_byte_span.eachi() {
if byteToGlyph[i] > NO_GLYPH {
max_glyph_idx = uint::max(byteToGlyph[i] as uint, max_glyph_idx);
max_glyph_idx = uint::max(byteToGlyph[i] as uint + 1, max_glyph_idx);
}
}