Fix linux build error.

This commit is contained in:
Josh Matthews 2014-10-01 18:43:24 -04:00
parent 7401cd0aeb
commit be41c203ac

View file

@ -238,7 +238,7 @@ impl FontHandleMethods for FontHandle {
let average_advance = self.glyph_index('0')
.and_then(|idx| self.glyph_h_advance(idx))
.map(|advance| self.font_units_to_au(advance))
.unwrap_or(max_advance_width);
.unwrap_or(max_advance);
let metrics = FontMetrics {
underline_size: underline_size,