[ot-layout] Clear random flag for subsequent flags

Ouch!
This commit is contained in:
Behdad Esfahbod 2021-07-09 17:12:09 -06:00
parent 29c9833e57
commit 33b579d0ad
1 changed files with 3 additions and 4 deletions

View File

@ -1932,11 +1932,10 @@ inline void hb_ot_map_t::apply (const Proxy &proxy,
c.set_lookup_mask (lookups[table_index][i].mask);
c.set_auto_zwj (lookups[table_index][i].auto_zwj);
c.set_auto_zwnj (lookups[table_index][i].auto_zwnj);
if (lookups[table_index][i].random)
{
c.set_random (true);
c.set_random (lookups[table_index][i].random);
if (c.random)
buffer->unsafe_to_break_all ();
}
apply_string<Proxy> (&c,
proxy.table.get_lookup (lookup_index),
proxy.accels[lookup_index]);