From: tasn Date: Sun, 30 Jan 2011 10:38:44 +0000 (+0000) Subject: Evas text: fixed an issue with last_up_to_pos and char_at_coords that caused them... X-Git-Tag: 2.0_alpha~240^2~1179 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8fdbc97e416203c6cead59ddd833be6f40befde7;p=framework%2Fuifw%2Fevas.git Evas text: fixed an issue with last_up_to_pos and char_at_coords that caused them to return the wrong index. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@56475 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/canvas/evas_object_text.c b/src/lib/canvas/evas_object_text.c index 43c4047..7580a3b 100644 --- a/src/lib/canvas/evas_object_text.c +++ b/src/lib/canvas/evas_object_text.c @@ -162,7 +162,7 @@ _evas_object_text_last_up_to_pos(const Evas_Object *obj, { if ((x <= cx) && (cx < x + it->adv)) { - return ENFN->font_last_up_to_pos(ENDT, + return it->text_pos + ENFN->font_last_up_to_pos(ENDT, o->engine_data, it->text, &it->text_props, cx - x, @@ -187,7 +187,7 @@ _evas_object_text_char_at_coords(const Evas_Object *obj, { if ((x <= cx) && (cx < x + it->adv)) { - return ENFN->font_char_at_coords_get(ENDT, + return it->text_pos + ENFN->font_char_at_coords_get(ENDT, o->engine_data, it->text, &it->text_props, cx,