Add safety check for valid zone. If we do not have one, return current

one.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81227
This commit is contained in:
Christopher Michael 2012-12-18 09:35:19 +00:00 committed by Christopher Michael
parent a658db2782
commit 649446a72e
1 changed files with 2 additions and 1 deletions

View File

@ -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
*