Evas text: Fixed a bug in evas_object_text_char_pos_get - wrong X returned.

Happens when using multiple scripts in the same text object.

SVN revision: 61300
This commit is contained in:
Tom Hacohen 2011-07-12 15:04:07 +00:00
parent b0a4063d6b
commit d808ccdaab
1 changed files with 4 additions and 1 deletions

View File

@ -110,8 +110,11 @@ _evas_object_text_char_coords_get(const Evas_Object *obj,
if ((it->text_pos <= pos) &&
(pos < (it->text_pos + it->text_props.text_len)))
{
return ENFN->font_char_coords_get(ENDT, o->font,
int ret;
ret = ENFN->font_char_coords_get(ENDT, o->font,
&it->text_props, pos - it->text_pos, x, y, w, h);
if (x) *x += it->x;
return ret;
}
}
return 0;