Evas text: fixed an issue with last_up_to_pos and char_at_coords that caused them to return the wrong index.

SVN revision: 56475
This commit is contained in:
Tom Hacohen 2011-01-30 10:38:44 +00:00
parent fa49914387
commit 400fba721e
1 changed files with 2 additions and 2 deletions

View File

@ -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,