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
This commit is contained in:
Tom Hacohen 2010-10-05 10:44:40 +00:00
parent 05262d2120
commit 6b4743aa40
1 changed files with 2 additions and 3 deletions

View File

@ -6076,7 +6076,6 @@ evas_textblock_cursor_range_delete(Evas_Textblock_Cursor *cur1, Evas_Textblock_C
} }
n1 = cur1->node; n1 = cur1->node;
n2 = cur2->node; n2 = cur2->node;
cur2->pos++; /* Also remove the marked char */
if (n1 == n2) if (n1 == n2)
{ {
@ -6876,7 +6875,7 @@ evas_textblock_cursor_range_geometry_get(const Evas_Textblock_Cursor *cur1, cons
} }
return NULL; return NULL;
} }
tr->w = cx + cw - tr->x; tr->w = cx - tr->x;
} }
else else
{ {
@ -6921,7 +6920,7 @@ evas_textblock_cursor_range_geometry_get(const Evas_Textblock_Cursor *cur1, cons
tr->x = lx; tr->x = lx;
tr->y = ly; tr->y = ly;
tr->h = lh; tr->h = lh;
tr->w = cx + cw - lx; tr->w = cx - lx;
} }
return rects; return rects;
} }