forked from enlightenment/efl
Evas textblock: Fixed an issue with range_geometry_get.
SVN revision: 56449
This commit is contained in:
parent
cf083720b6
commit
de1549fa25
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue