Skip to content

Commit

Permalink
[gsubgpos] Remove wrong condition in Context application
Browse files Browse the repository at this point in the history
Fixes #3545
  • Loading branch information
behdad committed Apr 22, 2022
1 parent 038203d commit 6695bf0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/hb-ot-layout-gsubgpos.hh
Original file line number Diff line number Diff line change
Expand Up @@ -1415,11 +1415,6 @@ static inline void apply_lookup (hb_ot_apply_context_t *c,
if (idx >= count)
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 ();

/* This can happen if earlier recursed lookups deleted many entries. */
Expand Down

0 comments on commit 6695bf0

Please sign in to comment.