forked from enlightenment/efl
Evas textblock: Fixed a bug in cursor_char_coord_set with coords < 0.
SVN revision: 61341
This commit is contained in:
parent
333f523df4
commit
3b71290152
|
@ -7690,9 +7690,14 @@ evas_textblock_cursor_char_coord_set(Evas_Textblock_Cursor *cur, Evas_Coord x, E
|
|||
/* If we are after the last paragraph, use the last position in the
|
||||
* text. */
|
||||
evas_textblock_cursor_paragraph_last(cur);
|
||||
evas_textblock_cursor_char_next(cur);
|
||||
return EINA_TRUE;
|
||||
}
|
||||
else if (y < 0)
|
||||
{
|
||||
evas_textblock_cursor_paragraph_first(cur);
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue