[subset] reset the visited lookup count before each closure iteration.
This commit is contained in:
parent
23159084b4
commit
d67025705f
|
@ -81,6 +81,9 @@ struct hb_closure_context_t :
|
||||||
nesting_level_left++;
|
nesting_level_left++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void reset_lookup_visit_count ()
|
||||||
|
{ lookup_count = 0; }
|
||||||
|
|
||||||
bool lookup_limit_exceeded ()
|
bool lookup_limit_exceeded ()
|
||||||
{ return lookup_count > HB_MAX_LOOKUP_VISIT_COUNT; }
|
{ return lookup_count > HB_MAX_LOOKUP_VISIT_COUNT; }
|
||||||
|
|
||||||
|
|
|
@ -1530,6 +1530,7 @@ hb_ot_layout_lookups_substitute_closure (hb_face_t *face,
|
||||||
unsigned int glyphs_length;
|
unsigned int glyphs_length;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
c.reset_lookup_visit_count ();
|
||||||
glyphs_length = glyphs->get_population ();
|
glyphs_length = glyphs->get_population ();
|
||||||
if (lookups)
|
if (lookups)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue