Evas textblock: Fixed range geometry when the last item is a format.

SVN revision: 75257
This commit is contained in:
Tom Hacohen 2012-08-14 12:40:41 +00:00
parent 54650e7e56
commit fc94d7b168
2 changed files with 14 additions and 2 deletions

View File

@ -957,3 +957,7 @@
2012-08-13 Carsten Haitzler (The Rasterman)
* Fix async fd stuff to generate new pipe after a fork (pid mismatch)
2012-08-14 Tom Hacohen (TAsn)
* Textblock: Fixed range geometry when the last item is a format.

View File

@ -8928,8 +8928,16 @@ _evas_textblock_cursor_range_in_line_geometry_get(
}
else
{
x = 0;
w = it2->w;
if (end > 0)
{
x = it2->adv;
w = 0;
}
else
{
x = 0;
w = it2->adv;
}
_evas_textblock_range_calc_x_w(it2, &x, &w, EINA_FALSE,
switch_items);
}