Skip to content

Commit

Permalink
[matcher] Fix reverse-sub test
Browse files Browse the repository at this point in the history
  • Loading branch information
behdad committed Dec 2, 2023
1 parent ced3309 commit c196786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hb-ot-layout-gsubgpos.hh
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ struct hb_ot_apply_context_t :
{
idx = start_index_;
end = c->buffer->len;
matcher.set_syllable (per_syllable ? c->buffer->cur().syllable () : 0);
matcher.set_syllable (per_syllable && c->buffer->idx < c->buffer->len ? c->buffer->cur().syllable () : 0);
}

#ifndef HB_OPTIMIZE_SIZE
Expand Down

0 comments on commit c196786

Please sign in to comment.