diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2012-11-18 22:32:02 -0800 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2012-11-18 22:32:02 -0800 |
commit | 1e389ebf172794c14d441afff171bf12f3aa1354 (patch) | |
tree | 360983bd208202cd6f818e3b92411393e0dd68e4 /src | |
parent | 1ddfc148819b47fffed8d2dfedf8e675788cb46b (diff) | |
download | servo-1e389ebf172794c14d441afff171bf12f3aa1354.tar.gz servo-1e389ebf172794c14d441afff171bf12f3aa1354.zip |
Fix assert in Quartz backend
Diffstat (limited to 'src')
-rw-r--r-- | src/servo-gfx/font.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/servo-gfx/font.rs b/src/servo-gfx/font.rs index 23b20b153ca..6d40069343e 100644 --- a/src/servo-gfx/font.rs +++ b/src/servo-gfx/font.rs @@ -430,6 +430,8 @@ pub impl Font : FontMethods { }; let azglyph_buf_len = azglyphs.len(); + if azglyph_buf_len == 0 { return; } // Otherwise the Quartz backend will assert. + let azglyph_buf = dvec::unwrap(move azglyphs); let glyphbuf: AzGlyphBuffer = unsafe {{ mGlyphs: vec::raw::to_ptr(azglyph_buf), |