Evas textblock: Fixed returned position of "clean" cursors.

Issue reported by Shilpa.

SVN revision: 61203
This commit is contained in:
Tom Hacohen 2011-07-10 12:18:48 +00:00
parent b43f08436d
commit ad79facc8a
1 changed files with 1 additions and 0 deletions

View File

@ -6237,6 +6237,7 @@ evas_textblock_cursor_pos_get(const Evas_Textblock_Cursor *cur)
size_t npos = 0;
if (!cur) return -1;
if (!cur->node) return 0;
o = (Evas_Object_Textblock *)(cur->obj->object_data);
n = o->text_nodes;
while (n != cur->node)