From 8f6559a373363e8992cb964ecae2ce2a115e2d7d Mon Sep 17 00:00:00 2001 From: ckitagawa Date: Mon, 25 Jan 2021 10:37:59 -0500 Subject: [PATCH] [subet/COLR] Default initialize firstLayerIdx --- src/hb-ot-color-colr-table.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-ot-color-colr-table.hh b/src/hb-ot-color-colr-table.hh index 92a49bb4f..7d79d575a 100644 --- a/src/hb-ot-color-colr-table.hh +++ b/src/hb-ot-color-colr-table.hh @@ -217,6 +217,7 @@ struct COLR BaseGlyphRecord new_record; new_record.glyphId = new_gid; new_record.numLayers = old_record->numLayers; + new_record.firstLayerIdx = 0; // Updated during serialization. return hb_pair_t (true, new_record); }) | hb_filter (hb_first)