cedric pushed a commit to branch master.

commit 4151f89e2d08fef89fbe5ffbb708aa5283afe6c2
Author: Cedric Bail <[email protected]>
Date:   Sun Apr 7 23:44:13 2013 +0900

    evas: correctly initialize and get the bounding box at the right time.
---
 src/lib/evas/canvas/evas_events.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/lib/evas/canvas/evas_events.c 
b/src/lib/evas/canvas/evas_events.c
index 14daad1..392a562 100644
--- a/src/lib/evas/canvas/evas_events.c
+++ b/src/lib/evas/canvas/evas_events.c
@@ -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 &&

-- 

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html

Reply via email to