forked from enlightenment/efl
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:
parent
fa49914387
commit
400fba721e
|
@ -162,7 +162,7 @@ _evas_object_text_last_up_to_pos(const Evas_Object *obj,
|
||||||
{
|
{
|
||||||
if ((x <= cx) && (cx < x + it->adv))
|
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,
|
o->engine_data,
|
||||||
it->text, &it->text_props,
|
it->text, &it->text_props,
|
||||||
cx - x,
|
cx - x,
|
||||||
|
@ -187,7 +187,7 @@ _evas_object_text_char_at_coords(const Evas_Object *obj,
|
||||||
{
|
{
|
||||||
if ((x <= cx) && (cx < x + it->adv))
|
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,
|
o->engine_data,
|
||||||
it->text, &it->text_props,
|
it->text, &it->text_props,
|
||||||
cx,
|
cx,
|
||||||
|
|
Loading…
Reference in New Issue