evas: correctly initialize and get the bounding box at the right time.

This commit is contained in:
Cedric Bail 2013-04-07 23:44:13 +09:00
parent 244cca7503
commit 4151f89e2d
1 changed files with 4 additions and 3 deletions

View File

@ -103,12 +103,13 @@ _evas_event_object_list_raw_in_get(Evas *eo_e, Eina_List *in,
}
else
{
Evas_Coord_Rectangle bounding_box;
evas_object_smart_bounding_box_get(eo_obj, &bounding_box, NULL);
Evas_Coord_Rectangle bounding_box = { 0, 0, 0, 0 };
if (!obj->child_has_map)
evas_object_smart_bounding_box_update(eo_obj, obj);
evas_object_smart_bounding_box_get(eo_obj, &bounding_box, NULL);
if (obj->child_has_map ||
(bounding_box.x <= x &&
bounding_box.x + bounding_box.w >= x &&