[matcher] Simplify logic Another test fails now. Needs to be investigated.
diff --git a/src/hb-ot-layout-gsubgpos.hh b/src/hb-ot-layout-gsubgpos.hh index 370c30f..48a3c83 100644 --- a/src/hb-ot-layout-gsubgpos.hh +++ b/src/hb-ot-layout-gsubgpos.hh
@@ -522,10 +522,7 @@ { idx = start_index_; end = c->buffer->len; - if (per_syllable) - matcher.set_syllable (start_index_ == c->buffer->idx ? c->buffer->cur().syllable () : 0); - else - matcher.set_syllable (0); + matcher.set_syllable (per_syllable ? c->buffer->cur().syllable () : 0); } #ifndef HB_OPTIMIZE_SIZE