From 4fba5cd1c7662f39141cc30af0c675ffaa25f834 Mon Sep 17 00:00:00 2001 From: hermet Date: Wed, 27 Apr 2011 13:09:37 +0000 Subject: [PATCH] elementary/ctxpopup - added minor exceptions. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@58959 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elc_ctxpopup.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c index 43289f7..42a41db 100644 --- a/src/lib/elc_ctxpopup.c +++ b/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); } -- 2.7.4