mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fix assert in Quartz backend
This commit is contained in:
parent
1ddfc14881
commit
1e389ebf17
1 changed files with 2 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue