Evas textblock: Fixed a bug in cursor_char_coord_set with coords < 0.

SVN revision: 61341
This commit is contained in:
Tom Hacohen 2011-07-13 14:35:12 +00:00
parent 333f523df4
commit 3b71290152
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}