forked from enlightenment/enlightenment
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:
parent
a658db2782
commit
649446a72e
|
@ -288,7 +288,8 @@ e_smart_monitor_setup(Evas_Object *obj)
|
||||||
|
|
||||||
/* get the current zone at this crtc coordinate */
|
/* get the current zone at this crtc coordinate */
|
||||||
sd->con = e_container_current_get(e_manager_current_get());
|
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
|
/* set references to the container & zone number
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue