Evas textblock: In continuation to the previous commit: range get should also work up until the char, not including.

SVN revision: 53054
This commit is contained in:
Tom Hacohen 2010-10-05 10:50:58 +00:00
parent 6b4743aa40
commit dd9dc0e4ec
1 changed files with 1 additions and 6 deletions

View File

@ -6213,12 +6213,7 @@ evas_textblock_cursor_range_text_get(const Evas_Textblock_Cursor *cur1, const Ev
cur2 = alloca(sizeof(Evas_Textblock_Cursor));
cur2->obj = _cur2->obj;
evas_textblock_cursor_copy(_cur2, cur2);
if (cur2->pos < eina_ustrbuf_length_get(cur2->node->unicode))
{
/* We want to also copy the pointed to char, only if it's not
* the terminating null. */
cur2->pos++;
}
/* Parse the text between the cursors. */
for (tnode = cur1->node ; tnode ;
tnode = _NODE_TEXT(EINA_INLIST_GET(tnode)->next))