From: tasn Date: Mon, 17 Oct 2011 08:12:52 +0000 (+0000) Subject: Elm Glayer: Fixed code to match convention X-Git-Tag: REL_F_I9200_20111025_1~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d93aa683f60b69f83f776e750a63852da4845196;p=framework%2Fuifw%2Felementary.git Elm Glayer: Fixed code to match convention Signed-off-by: Aharon Hillel git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@64129 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_gesture_layer.c b/src/lib/elm_gesture_layer.c index f7789a8..cae6f13 100644 --- a/src/lib/elm_gesture_layer.c +++ b/src/lib/elm_gesture_layer.c @@ -975,9 +975,9 @@ _event_history_clear(Evas_Object *obj) { /* We do not clear a long-tap gesture if fingers still on surface */ /* and gesture timer still pending to test gesture state */ Long_Tap_Type *st = wd->gesture[ELM_GESTURE_N_LONG_TAPS]->data; - if (st) /* st not allocated if clear occurs before 1st input */ - if((!eina_list_count(st->touched)) || (!st->timeout)) - _n_long_tap_test_reset(wd->gesture[ELM_GESTURE_N_LONG_TAPS]); + if ((st) && /* st not allocated if clear occurs before 1st input */ + ((!eina_list_count(st->touched)) || (!st->timeout))) + _n_long_tap_test_reset(wd->gesture[ELM_GESTURE_N_LONG_TAPS]); } if (wd->dbl_timeout)