Skip to content

Commit 974f828

Browse files
committed
[matcher] Fix reverse-sub test
1 parent a79e372 commit 974f828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hb-ot-layout-gsubgpos.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ struct hb_ot_apply_context_t :
522522
{
523523
idx = start_index_;
524524
end = c->buffer->len;
525-
matcher.set_syllable (per_syllable ? c->buffer->cur().syllable () : 0);
525+
matcher.set_syllable (per_syllable && c->buffer->idx < c->buffer->len ? c->buffer->cur().syllable () : 0);
526526
}
527527

528528
#ifndef HB_OPTIMIZE_SIZE

0 commit comments

Comments
 (0)