From 2c7d0b6b80d412de3fddd443ed1a485ea1cbb03c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 13 Feb 2013 12:10:08 -0500 Subject: [PATCH] [OTLayou] Unbreak backtrack matching Was introduced by 28b9d502bb69a8045818d5f6113ded9c59a56bd7. --- src/hb-ot-layout-gsubgpos-private.hh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/hb-ot-layout-gsubgpos-private.hh b/src/hb-ot-layout-gsubgpos-private.hh index a9824eb6a..04b29eb51 100644 --- a/src/hb-ot-layout-gsubgpos-private.hh +++ b/src/hb-ot-layout-gsubgpos-private.hh @@ -340,15 +340,14 @@ struct hb_apply_context_t inline skipping_backward_iterator_t (hb_apply_context_t *c_, unsigned int start_index_, unsigned int num_items_, - hb_mask_t mask_ = 0, - bool match_syllable_ = true) + bool context_match = false) { c = c_; lookup_props = c->lookup_props; idx = start_index_; num_items = num_items_; - mask = mask_ ? mask_ : c->lookup_mask; - syllable = match_syllable_ ? c->buffer->cur().syllable () : 0; + mask = context_match ? -1 : c->lookup_mask; + syllable = context_match ? 0 : c->buffer->cur().syllable (); } inline void set_lookup_props (unsigned int lookup_props_) {