From d4adade217a61007dd2da5cd9eccf889f79a019a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 14 Apr 2012 19:23:17 -0400 Subject: [PATCH] Add assert --- src/hb-ot-shape.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc index 4b20cb3ca..6960acffd 100644 --- a/src/hb-ot-shape.cc +++ b/src/hb-ot-shape.cc @@ -400,6 +400,8 @@ hb_ot_shape_plan_internal (hb_ot_shape_plan_t *plan, { hb_ot_shape_planner_t planner; + assert (HB_DIRECTION_IS_VALID (props->direction)); + planner.shaper = hb_ot_shape_complex_categorize (props); hb_ot_shape_collect_features (&planner, props, user_features, num_user_features);