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:
Brian Anderson 2012-10-12 00:27:38 -07:00
parent 8391e3b167
commit 7c53467246

View file

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