From d8f4ab2c9bff19a65a954270c4377af738a8eb5d Mon Sep 17 00:00:00 2001 From: tasn 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. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@53053 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_textblock.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/canvas/evas_object_textblock.c b/src/lib/canvas/evas_object_textblock.c index 50973a5..6c0ee66 100644 --- a/src/lib/canvas/evas_object_textblock.c +++ b/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; } -- 2.7.4