From dd9dc0e4ec2db870670b0209fa57b08903735ddf Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 5 Oct 2010 10:50:58 +0000 Subject: [PATCH] Evas textblock: In continuation to the previous commit: range get should also work up until the char, not including. SVN revision: 53054 --- legacy/evas/src/lib/canvas/evas_object_textblock.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/legacy/evas/src/lib/canvas/evas_object_textblock.c b/legacy/evas/src/lib/canvas/evas_object_textblock.c index 6c0ee662c1..05829f1ffe 100644 --- a/legacy/evas/src/lib/canvas/evas_object_textblock.c +++ b/legacy/evas/src/lib/canvas/evas_object_textblock.c @@ -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))