From 39c8201f8e361e8c0f23f07bf20124ccadc6086c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 6 Jun 2014 17:19:35 -0400 Subject: [PATCH] [indic] Improve base re-finding No test numbers change. --- src/hb-ot-shape-complex-indic.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index e99696718..81f4c6195 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -1353,11 +1353,10 @@ final_reordering_syllable (const hb_ot_shape_plan_t *plan, break; } if (base == end && start < base && - info[base - 1].indic_category() != OT_ZWJ) + is_one_of (info[base - 1], FLAG (OT_ZWJ))) base--; while (start < base && - (info[base].indic_category() == OT_H || - info[base].indic_category() == OT_N)) + is_one_of (info[base], (FLAG (OT_N) | HALANT_OR_COENG_FLAGS))) base--;