fix 58ec67bfa about removing shadow variables

This commit is contained in:
Boris Faure 2013-08-26 21:05:09 +02:00
parent 9d000c7c1d
commit d63629ccbf
1 changed files with 4 additions and 5 deletions

View File

@ -468,14 +468,13 @@ _update_link(Evas_Object *obj, Termio *sd,
{ {
if ((sd->link.string[0] == '/') || (link_is_url(sd->link.string))) if ((sd->link.string[0] == '/') || (link_is_url(sd->link.string)))
{ {
Evas_Coord _x = ox, _y = oy;
Ecore_X_Window xwin; Ecore_X_Window xwin;
evas_object_geometry_get(obj, &ox, &oy, NULL, NULL); _x += sd->mouse.cx * sd->font.chw;
_y += sd->mouse.cy * sd->font.chh;
ox += sd->mouse.cx * sd->font.chw;
oy += sd->mouse.cy * sd->font.chh;
xwin = elm_win_xwindow_get(sd->win); xwin = elm_win_xwindow_get(sd->win);
ty_dbus_link_mousein(xwin, sd->link.string, ox, oy); ty_dbus_link_mousein(xwin, sd->link.string, _x, _y);
} }
for (y = sd->link.y1; y <= sd->link.y2; y++) for (y = sd->link.y1; y <= sd->link.y2; y++)
{ {