From 9b22b3b82ab29c900cddf31359811ef81c80f329 Mon Sep 17 00:00:00 2001 From: "chuneon.park" Date: Fri, 18 Mar 2011 15:43:51 +0900 Subject: [PATCH] added icon null check --- src/lib/elc_ctxpopup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c index 6a18d15..069c3e0 100644 --- a/src/lib/elc_ctxpopup.c +++ b/src/lib/elc_ctxpopup.c @@ -866,6 +866,8 @@ _item_icon_set(Elm_Ctxpopup_Item *item, Evas_Object *icon) } item->icon = icon; + if (!icon) return; + edje_object_part_swallow(item->base.view, "elm.swallow.icon", item->icon); edje_object_message_signal_process(item->base.view); } -- 2.7.4