Skip to content

Commit

Permalink
auto merge of #882 : sammykim/servo/infinite-loop, r=metajack
Browse files Browse the repository at this point in the history
To reproduce:

```html
<span style="font-size: 128px">abc</span>
```
  • Loading branch information
bors-servo committed Sep 10, 2013
2 parents 0dd90c7 + 7a1493a commit ae0d531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/gfx/text/glyph.rs
Expand Up @@ -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 => {
Expand Down

0 comments on commit ae0d531

Please sign in to comment.