mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix the indexes used in get_detailed_glyphs_for_entry
I haven't looked at exactly what is going on here, but these indexes work better for me on linux
This commit is contained in:
parent
8391e3b167
commit
7c53467246
1 changed files with 2 additions and 2 deletions
|
@ -332,9 +332,9 @@ impl DetailedGlyphStore {
|
|||
None => fail ~"Invalid index not found in detailed glyph lookup table!",
|
||||
Some(i) => {
|
||||
do self.detail_buffer.borrow |glyphs : &[DetailedGlyph]| {
|
||||
assert i + (count as uint) < glyphs.len();
|
||||
assert i + (count as uint) <= glyphs.len();
|
||||
// return a view into the buffer
|
||||
vec::view(glyphs, i, count as uint)
|
||||
vec::view(glyphs, i, i + count as uint)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue