From 43bc1c2bf9a8376605214cde6962d87da461ebf2 Mon Sep 17 00:00:00 2001 From: Tae-Hwan Kim Date: Thu, 25 Apr 2013 17:03:05 +0900 Subject: [PATCH] [Naviframe] Fix crash when using mouse wheel Change-Id: Ie6982fcab8f0f7d3d3fa183755cc1cce01eb7a5a --- src/lib/elc_naviframe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c index db2cc6e..1720d1c 100644 --- a/src/lib/elc_naviframe.c +++ b/src/lib/elc_naviframe.c @@ -1527,7 +1527,7 @@ _elm_naviframe_smart_event(Evas_Object *obj, if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return EINA_FALSE; if (elm_widget_disabled_get(obj)) return EINA_FALSE; - if (strcmp(ev->keyname, KEY_END) && strcmp(ev->keyname, "Escape")) return EINA_FALSE; + if (ev->keyname && strcmp(ev->keyname, KEY_END) && strcmp(ev->keyname, "Escape")) return EINA_FALSE; if (type != EVAS_CALLBACK_KEY_DOWN) return EINA_FALSE; it = (Elm_Naviframe_Item *) elm_naviframe_top_item_get(obj); -- 2.7.4