[OTLayout] Only collect output glyphs during recursion in collect_glyphs()

This commit is contained in:
Behdad Esfahbod 2012-11-24 02:05:52 -05:00
parent f1b12781d2
commit 1ea375da44
1 changed files with 3 additions and 1 deletions

View File

@ -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 ();
}