From 649446a72e60d67b1f6269546f299b9af80cbe45 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Tue, 18 Dec 2012 09:35:19 +0000 Subject: [PATCH] Add safety check for valid zone. If we do not have one, return current one. Signed-off-by: Christopher Michael SVN revision: 81227 --- src/modules/conf_randr/e_smart_monitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/conf_randr/e_smart_monitor.c b/src/modules/conf_randr/e_smart_monitor.c index fe5250c57..856967a51 100644 --- a/src/modules/conf_randr/e_smart_monitor.c +++ b/src/modules/conf_randr/e_smart_monitor.c @@ -288,7 +288,8 @@ e_smart_monitor_setup(Evas_Object *obj) /* get the current zone at this crtc coordinate */ sd->con = e_container_current_get(e_manager_current_get()); - zone = e_container_zone_at_point_get(sd->con, sd->orig.x, sd->orig.y); + if (!(zone = e_container_zone_at_point_get(sd->con, sd->orig.x, sd->orig.y))) + zone = e_util_zone_current_get(e_manager_current_get()); /* set references to the container & zone number *