From bb476a2112473a9adabfc42a7cabe32c8140f60f Mon Sep 17 00:00:00 2001 From: Jaehwan Kim Date: Thu, 4 Nov 2010 17:15:40 +0900 Subject: [PATCH] [controlbar] bug fix when clicked item be deleted --- src/lib/elm_controlbar.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lib/elm_controlbar.c b/src/lib/elm_controlbar.c index 3c65c19..56ebf17 100644 --- a/src/lib/elm_controlbar.c +++ b/src/lib/elm_controlbar.c @@ -1382,12 +1382,14 @@ unpressed_box_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info) } } - evas_object_geometry_get(wd->pre_item->base, &x, &y, &w, &h); - if(ev->output.x > x && ev->output.x < x+w && ev->output.y > y && ev->output.y < y+h) + if(item_exist_check(wd, wd->pre_item)) { - selected_box(wd->pre_item); + evas_object_geometry_get(wd->pre_item->base, &x, &y, &w, &h); + if(ev->output.x > x && ev->output.x < x+w && ev->output.y > y && ev->output.y < y+h) + { + selected_box(wd->pre_item); + } } - return; } -- 2.7.4