From b722039c48b41c1e96c7a1bcbad072a2332d4e46 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 17 Dec 2022 10:22:32 -0700 Subject: [PATCH] [colr] Simplify --- src/hb-ot-color-colr-table.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-color-colr-table.cc b/src/hb-ot-color-colr-table.cc index 62f1319fb..e469fa25b 100644 --- a/src/hb-ot-color-colr-table.cc +++ b/src/hb-ot-color-colr-table.cc @@ -7,7 +7,7 @@ void PaintColrLayers::paint_glyph (hb_paint_context_t *c) const const LayerList &paint_offset_lists = c->get_colr_table ()->get_layerList (); for (unsigned i = firstLayerIndex; i < firstLayerIndex + numLayers; i++) { - const Paint &paint = std::addressof (paint_offset_lists) + paint_offset_lists[i]; + const Paint &paint = paint_offset_lists.get_paint (i); c->funcs->push_group (c->data); c->recurse (paint); c->funcs->pop_group (c->data, HB_PAINT_COMPOSITE_MODE_SRC_OVER);