From 6b4743aa40425858f51de7b6713651ebca9b5886 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 5 Oct 2010 10:44:40 +0000 Subject: [PATCH] Evas textblock: Selection should work from the start cursor up to before the end cursor, i.e it should *not* include the end cursor. SVN revision: 53053 --- legacy/evas/src/lib/canvas/evas_object_textblock.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/legacy/evas/src/lib/canvas/evas_object_textblock.c b/legacy/evas/src/lib/canvas/evas_object_textblock.c index 50973a5cd8..6c0ee662c1 100644 --- a/legacy/evas/src/lib/canvas/evas_object_textblock.c +++ b/legacy/evas/src/lib/canvas/evas_object_textblock.c @@ -6076,7 +6076,6 @@ evas_textblock_cursor_range_delete(Evas_Textblock_Cursor *cur1, Evas_Textblock_C } n1 = cur1->node; n2 = cur2->node; - cur2->pos++; /* Also remove the marked char */ if (n1 == n2) { @@ -6876,7 +6875,7 @@ evas_textblock_cursor_range_geometry_get(const Evas_Textblock_Cursor *cur1, cons } return NULL; } - tr->w = cx + cw - tr->x; + tr->w = cx - tr->x; } else { @@ -6921,7 +6920,7 @@ evas_textblock_cursor_range_geometry_get(const Evas_Textblock_Cursor *cur1, cons tr->x = lx; tr->y = ly; tr->h = lh; - tr->w = cx + cw - lx; + tr->w = cx - lx; } return rects; }