[colr] minor
authorEbrahim Byagowi <ebrahim@gnu.org>
Tue, 30 Jul 2019 12:50:18 +0000 (17:20 +0430)
committerGitHub <noreply@github.com>
Tue, 30 Jul 2019 12:50:18 +0000 (17:20 +0430)
src/hb-ot-color-colr-table.hh

index 41f9f71..3447b14 100644 (file)
@@ -100,7 +100,7 @@ struct COLR
   {
     const BaseGlyphRecord &record = (this+baseGlyphsZ).bsearch (numBaseGlyphs, glyph);
 
-    hb_array_t<const LayerRecord> all_layers ((this+layersZ).arrayZ, numLayers);
+    hb_array_t<const LayerRecord> all_layers = (this+layersZ).as_array (numLayers);
     hb_array_t<const LayerRecord> glyph_layers = all_layers.sub_array (record.firstLayerIdx,
                                                                       record.numLayers);
     if (count)