From: Behdad Esfahbod Date: Tue, 12 Oct 2010 21:00:07 +0000 (-0400) Subject: Clear masks before setting them up, not after! X-Git-Tag: submit/2.0alpha-wayland/20121130.004132~9^2~502 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e80782244cdb1dedae9d1e61079d0508e57ca72;p=profile%2Fivi%2Forg.tizen.video-player.git Clear masks before setting them up, not after! --- diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc index efa71ba..36155df 100644 --- a/src/hb-ot-shape.cc +++ b/src/hb-ot-shape.cc @@ -82,6 +82,8 @@ hb_ot_shape_collect_features (hb_ot_shape_plan_t *plan, static void hb_ot_shape_setup_masks (hb_ot_shape_context_t *c) { + c->buffer->clear_masks (); + hb_mask_t global_mask = c->plan->map.get_global_mask (); if (global_mask) c->buffer->set_masks (global_mask, global_mask, 0, (unsigned int) -1); @@ -281,8 +283,6 @@ hb_ot_shape_execute_internal (hb_ot_shape_context_t *c) /* SUBSTITUTE */ { - c->buffer->clear_masks (); - /* Mirroring needs to see the original direction */ hb_mirror_chars (c); @@ -298,8 +298,6 @@ hb_ot_shape_execute_internal (hb_ot_shape_context_t *c) /* POSITION */ { - c->buffer->clear_masks (); - hb_position_default (c); hb_ot_position_complex (c);