out coords are -1

this fixes some other cases of links not disappearing on mouse out
fixing selection will come later
This commit is contained in:
Boris Faure 2013-10-10 23:02:28 +02:00
parent 6ea8622ecc
commit 36ba3bf3ed
1 changed files with 5 additions and 5 deletions

View File

@ -2250,17 +2250,17 @@ _smart_xy_to_cursor(Evas_Object *obj, Evas_Coord x, Evas_Coord y, int *cx, int *
sd = evas_object_smart_data_get(obj);
if (!sd)
{
*cx = 0;
*cy = 0;
*cx = -1;
*cy = -1;
return;
}
evas_object_geometry_get(obj, &ox, &oy, NULL, NULL);
*cx = (x - ox) / sd->font.chw;
*cy = (y - oy) / sd->font.chh;
if (*cx < 0) *cx = 0;
else if (*cx >= sd->grid.w) *cx = sd->grid.w - 1;
if (*cx < 0) *cx = -1;
else if (*cx >= sd->grid.w) *cx = -1;
if (*cy < 0) *cy = 0;
else if (*cy >= sd->grid.h) *cy = sd->grid.h - 1;
else if (*cy >= sd->grid.h) *cy = -1;
}
static void