diff --git a/src/hb-aat-layout-common-private.hh b/src/hb-aat-layout-common-private.hh index fea3b0949..7c0dfa8b0 100644 --- a/src/hb-aat-layout-common-private.hh +++ b/src/hb-aat-layout-common-private.hh @@ -657,7 +657,7 @@ struct StateTableDriver if (unlikely (!c->transition (this, entry))) break; - last_was_dont_advance = (entry->flags & context_t::DontAdvance) && buffer->max_ops--; + last_was_dont_advance = (entry->flags & context_t::DontAdvance) && buffer->max_ops-- > 0; state = entry->newState;