[OTLayou] Unbreak backtrack matching

Was introduced by 28b9d502bb.
This commit is contained in:
Behdad Esfahbod 2013-02-13 12:10:08 -05:00
parent c074ebc466
commit 2c7d0b6b80
1 changed files with 3 additions and 4 deletions

View File

@ -340,15 +340,14 @@ struct hb_apply_context_t
inline skipping_backward_iterator_t (hb_apply_context_t *c_, inline skipping_backward_iterator_t (hb_apply_context_t *c_,
unsigned int start_index_, unsigned int start_index_,
unsigned int num_items_, unsigned int num_items_,
hb_mask_t mask_ = 0, bool context_match = false)
bool match_syllable_ = true)
{ {
c = c_; c = c_;
lookup_props = c->lookup_props; lookup_props = c->lookup_props;
idx = start_index_; idx = start_index_;
num_items = num_items_; num_items = num_items_;
mask = mask_ ? mask_ : c->lookup_mask; mask = context_match ? -1 : c->lookup_mask;
syllable = match_syllable_ ? c->buffer->cur().syllable () : 0; syllable = context_match ? 0 : c->buffer->cur().syllable ();
} }
inline void set_lookup_props (unsigned int lookup_props_) inline void set_lookup_props (unsigned int lookup_props_)
{ {