From a52c6df38a38c4e36ff991dfb4b7d92e48a44553 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Mon, 27 Sep 2021 11:22:05 -0700 Subject: [PATCH] [subset] Fix bug in composite operation counting. Adding the result of add_gid_and_children to operation count over counts the number of operations. --- src/hb-ot-glyf-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-glyf-table.hh b/src/hb-ot-glyf-table.hh index 517e603ae..6b419ea1a 100644 --- a/src/hb-ot-glyf-table.hh +++ b/src/hb-ot-glyf-table.hh @@ -1118,7 +1118,7 @@ struct glyf while (it) { auto item = *(it++); - operation_count += + operation_count = add_gid_and_children (item.get_glyph_index (), gids_to_retain, depth, operation_count); }