From 1ea375da446bf68f705a70ce4a480db9fb9d13f3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 24 Nov 2012 02:05:52 -0500 Subject: [PATCH] [OTLayout] Only collect output glyphs during recursion in collect_glyphs() --- src/hb-ot-layout-gsubgpos-private.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hb-ot-layout-gsubgpos-private.hh b/src/hb-ot-layout-gsubgpos-private.hh index 51ae9b5f..d51ee010 100644 --- a/src/hb-ot-layout-gsubgpos-private.hh +++ b/src/hb-ot-layout-gsubgpos-private.hh @@ -158,7 +158,9 @@ struct hb_collect_glyphs_context_t return default_return_value (); nesting_level_left--; - recurse_func (this, lookup_index); + /* Only collect output glyphs in the recursion. */ + hb_collect_glyphs_context_t new_c (this->face, NULL, NULL, NULL, &output, nesting_level_left); + recurse_func (&new_c, lookup_index); nesting_level_left++; return default_return_value (); } -- GitLab