From ba51b99efb5c5f40aae381d9654ac18702047439 Mon Sep 17 00:00:00 2001 From: Aharon Hillel Date: Mon, 17 Oct 2011 08:12:49 +0000 Subject: [PATCH] Elm Glayer: Fixed call of long tap reset in case reset occurs before 1st input event Signed-off-by: Aharon Hillel SVN revision: 64128 --- legacy/elementary/src/lib/elm_gesture_layer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/legacy/elementary/src/lib/elm_gesture_layer.c b/legacy/elementary/src/lib/elm_gesture_layer.c index 2843fa3604..f7789a890d 100644 --- a/legacy/elementary/src/lib/elm_gesture_layer.c +++ b/legacy/elementary/src/lib/elm_gesture_layer.c @@ -975,8 +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((!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 */ + if((!eina_list_count(st->touched)) || (!st->timeout)) + _n_long_tap_test_reset(wd->gesture[ELM_GESTURE_N_LONG_TAPS]); } if (wd->dbl_timeout)