[subset] check for set insertion success.
This commit is contained in:
parent
c6adb90a27
commit
52df6b9fd8
|
@ -108,12 +108,17 @@ struct hb_closure_context_t :
|
|||
|
||||
if (!done_lookups_glyph_set->get (lookup_index))
|
||||
{
|
||||
done_lookups_glyph_set->set (lookup_index, hb_set_create ());
|
||||
} else {
|
||||
done_lookups_glyph_set->get (lookup_index)->clear ();
|
||||
hb_set_t* empty_set = hb_set_create ();
|
||||
done_lookups_glyph_set->set (lookup_index, empty_set);
|
||||
if (!done_lookups_glyph_set->get (lookup_index)) {
|
||||
hb_set_destroy (empty_set);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
done_lookups_glyph_set->get (lookup_index)->clear ();
|
||||
}
|
||||
|
||||
hb_set_t *covered_glyph_set = done_lookups_glyph_set->get (lookup_index);
|
||||
if (parent_active_glyphs ()->is_subset (covered_glyph_set))
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue