[gsubgpos] Remove wrong condition in Context application
Fixes https://github.com/harfbuzz/harfbuzz/issues/3545
This commit is contained in:
parent
038203de61
commit
6695bf0560
|
@ -1415,11 +1415,6 @@ static inline void apply_lookup (hb_ot_apply_context_t *c,
|
||||||
if (idx >= count)
|
if (idx >= count)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Don't recurse to ourself at same position.
|
|
||||||
* Note that this test is too naive, it doesn't catch longer loops. */
|
|
||||||
if (unlikely (idx == 0 && lookupRecord[i].lookupListIndex == c->lookup_index))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
unsigned int orig_len = buffer->backtrack_len () + buffer->lookahead_len ();
|
unsigned int orig_len = buffer->backtrack_len () + buffer->lookahead_len ();
|
||||||
|
|
||||||
/* This can happen if earlier recursed lookups deleted many entries. */
|
/* This can happen if earlier recursed lookups deleted many entries. */
|
||||||
|
|
Loading…
Reference in New Issue