Fix assert in Quartz backend

This commit is contained in:
Patrick Walton 2012-11-18 22:32:02 -08:00
parent 1ddfc14881
commit 1e389ebf17

View file

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