evas/event - add the xy origin to object when coords are transformed
authorChunEon Park <hermet@hermet.pe.kr>
Sat, 10 Nov 2012 12:52:00 +0000 (12:52 +0000)
committerChunEon Park <hermet@hermet.pe.kr>
Sat, 10 Nov 2012 12:52:00 +0000 (12:52 +0000)
Signed-Off-By: Leandro Dorileo<dorileo@profusioin.mobi>
SVN revision: 79098

src/lib/evas/canvas/evas_events.c

index 1a29650b6323659c70b50aff2a7d22a832416dbb..b28dcadff181745d0573749b7e80db8d99fba4fd 100644 (file)
@@ -22,9 +22,11 @@ _evas_event_havemap_adjust(Evas_Object *eo_obj EINA_UNUSED, Evas_Object_Protecte
    if ((!obj->cur.usemap) || (!obj->cur.map) || (!obj->cur.map->count == 4))
       return;
 
-   evas_map_coords_get(obj->cur.map, *x, *y, x, y, mouse_grabbed);
-   *x += obj->cur.geometry.x;
-   *y += obj->cur.geometry.y;
+   if(evas_map_coords_get(obj->cur.map, *x, *y, x, y, mouse_grabbed))
+     {
+        *x += obj->cur.geometry.x;
+        *y += obj->cur.geometry.y;
+     }
 }
 
 static void