mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Fix the crash on #582. Combining characters are still not shown because this is not implemented. With @sonwow
This commit is contained in:
parent
433f19f5a3
commit
ee5ff3f312
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue