From 88d0fb25a5b6a22eae29f47e1140f9034e27895d Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Wed, 27 Apr 2011 13:09:37 +0000 Subject: [PATCH] elementary/ctxpopup - added minor exceptions. SVN revision: 58959 --- legacy/elementary/src/lib/elc_ctxpopup.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/legacy/elementary/src/lib/elc_ctxpopup.c b/legacy/elementary/src/lib/elc_ctxpopup.c index 43289f7e90..42a41db5b5 100644 --- a/legacy/elementary/src/lib/elc_ctxpopup.c +++ b/legacy/elementary/src/lib/elc_ctxpopup.c @@ -129,7 +129,7 @@ _freeze_on(void *data __UNUSED__, Evas_Object *obj, { Widget_Data *wd = elm_widget_data_get(obj); - if (!wd) return; + if ((!wd) || (!wd->scr)) return; elm_object_scroll_freeze_push(wd->scr); } @@ -139,7 +139,7 @@ _freeze_off(void *data __UNUSED__, Evas_Object *obj, { Widget_Data *wd = elm_widget_data_get(obj); - if (!wd) return; + if ((!wd) || (!wd->scr)) return; elm_object_scroll_freeze_pop(wd->scr); } @@ -148,7 +148,7 @@ _hold_on(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) { Widget_Data *wd = elm_widget_data_get(obj); - if (!wd) return; + if ((!wd) || (!wd->scr)) return; elm_object_scroll_hold_push(wd->scr); } @@ -157,7 +157,7 @@ _hold_off(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) { Widget_Data *wd = elm_widget_data_get(obj); - if (!wd) return; + if ((!wd) || (!wd->scr)) return; elm_object_scroll_hold_pop(wd->scr); }