Nicer more idiomatic fix
This commit is contained in:
parent
8f6559a373
commit
2e50b517e1
|
@ -214,10 +214,9 @@ struct COLR
|
||||||
if (unlikely (!old_record))
|
if (unlikely (!old_record))
|
||||||
return hb_pair_t<bool, BaseGlyphRecord> (false, Null (BaseGlyphRecord));
|
return hb_pair_t<bool, BaseGlyphRecord> (false, Null (BaseGlyphRecord));
|
||||||
|
|
||||||
BaseGlyphRecord new_record;
|
BaseGlyphRecord new_record = {0};
|
||||||
new_record.glyphId = new_gid;
|
new_record.glyphId = new_gid;
|
||||||
new_record.numLayers = old_record->numLayers;
|
new_record.numLayers = old_record->numLayers;
|
||||||
new_record.firstLayerIdx = 0; // Updated during serialization.
|
|
||||||
return hb_pair_t<bool, BaseGlyphRecord> (true, new_record);
|
return hb_pair_t<bool, BaseGlyphRecord> (true, new_record);
|
||||||
})
|
})
|
||||||
| hb_filter (hb_first)
|
| hb_filter (hb_first)
|
||||||
|
|
Loading…
Reference in New Issue