From 7a1493a5d404c512bb6770b566d720511e5f1096 Mon Sep 17 00:00:00 2001 From: Sangeun Kim Date: Fri, 6 Sep 2013 18:00:48 +0900 Subject: [PATCH] Fix infinite loop bug. --- src/components/gfx/text/glyph.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/gfx/text/glyph.rs b/src/components/gfx/text/glyph.rs index d5e7bcd8ebb4..adcafc65f8d0 100644 --- a/src/components/gfx/text/glyph.rs +++ b/src/components/gfx/text/glyph.rs @@ -691,7 +691,7 @@ impl<'self> Iterator<(uint, GlyphInfo<'self>)> for GlyphIterator<'self> { // Would use 'match' here but it borrows contents in a way that // interferes with mutation. if self.glyph_range.is_some() { - match self.glyph_range.unwrap().next() { + match self.glyph_range.get_mut_ref().next() { Some(j) => Some((self.char_index, DetailGlyphInfo(self.store, self.char_index, j as u16))), None => {