Evas textblock: Fixed an issue with range_geometry_get.

SVN revision: 56449
This commit is contained in:
Tom Hacohen 2011-01-30 10:35:56 +00:00
parent cf083720b6
commit de1549fa25
1 changed files with 2 additions and 1 deletions

View File

@ -7206,6 +7206,7 @@ _evas_textblock_cursor_range_in_line_geometry_get(
if (!it1) if (!it1)
{ {
it1 = it; it1 = it;
start = item_len; /* start stores the first item_len */
} }
it2 = it; it2 = it;
end = item_len; /* end stores the last item_len */ end = item_len; /* end stores the last item_len */
@ -7225,7 +7226,7 @@ _evas_textblock_cursor_range_in_line_geometry_get(
} }
else else
{ {
start = (cur2) ? (cur2->pos - it1->text_pos) : end; start = (cur2) ? (cur2->pos - it1->text_pos) : start;
end = (cur1) ? (cur1->pos - it2->text_pos) : 0; end = (cur1) ? (cur1->pos - it2->text_pos) : 0;
switch_items = EINA_TRUE; switch_items = EINA_TRUE;
} }