[indic] Remove superfluous ZWNJ check in final reorder of pre-base matras

This commit is contained in:
Adrian Wong 2019-02-13 21:04:46 +11:00 committed by Michiharu Ariza
parent 7b7852efa5
commit 4f03d5c79d
1 changed files with 8 additions and 3 deletions

View File

@ -1199,9 +1199,14 @@ final_reordering_syllable (const hb_ot_shape_plan_t *plan,
goto search; goto search;
} }
} }
/* -> If ZWNJ follows this halant, position is moved after it. */ /* -> If ZWNJ follows this halant, position is moved after it.
if (info[new_pos + 1].indic_category() == OT_ZWNJ) *
new_pos++; * IMPLEMENTATION NOTES:
*
* This is taken care of by the state-machine. A Halant,ZWNJ is a terminating
* sequence for a consonant syllable; any pre-base matras occurring after it
* will belong to the subsequent syllable.
*/
} }
} }
else else