Evas textblock: fixed in issue with the return value of evas_textblock_cursor_char_next which wasn't always correct.

SVN revision: 56295
This commit is contained in:
Tom Hacohen 2011-01-25 02:56:14 +00:00
parent 45652e5da5
commit 80b71b0a05
1 changed files with 6 additions and 1 deletions

View File

@ -4608,12 +4608,17 @@ evas_textblock_cursor_char_next(Evas_Textblock_Cursor *cur)
{
if (!evas_textblock_cursor_paragraph_next(cur))
{
/* If we already were at the end, that means we don't have
* where to go next we should return FALSE */
if (cur->pos == (size_t) index)
return EINA_FALSE;
cur->pos = index;
return EINA_TRUE;
}
else
{
return EINA_FALSE;
return EINA_TRUE;
}
}
}