forked from enlightenment/efl
Evas textblock: Reverted my last commit and added WooHyun's instead.
They were pretty similar, but I think WooHyun's was better. Thanks to WooHyun for the patch. SVN revision: 75461
This commit is contained in:
parent
ba506122e1
commit
05136cc824
|
@ -8841,14 +8841,22 @@ _evas_textblock_cursor_range_in_line_geometry_get(
|
||||||
tr->w = w;
|
tr->w = w;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ((it1 == it2) && (it1->type == EVAS_TEXTBLOCK_ITEM_FORMAT))
|
else if ((it1 == it2) && (it1->type != EVAS_TEXTBLOCK_ITEM_TEXT))
|
||||||
{
|
{
|
||||||
tr = calloc(1, sizeof(Evas_Textblock_Rectangle));
|
Evas_Coord x, w;
|
||||||
rects = eina_list_append(rects, tr);
|
x = 0;
|
||||||
tr->x = ln->x + it1->x;
|
w = it1->w;
|
||||||
tr->y = ln->par->y + ln->y;
|
_evas_textblock_range_calc_x_w(it1, &x, &w, EINA_TRUE,
|
||||||
tr->h = ln->h;
|
switch_items);
|
||||||
tr->w = it1->w;
|
if (w > 0)
|
||||||
|
{
|
||||||
|
tr = calloc(1, sizeof(Evas_Textblock_Rectangle));
|
||||||
|
rects = eina_list_append(rects, tr);
|
||||||
|
tr->x = ln->x + it1->x + x;
|
||||||
|
tr->y = ln->par->y + ln->y;
|
||||||
|
tr->h = ln->h;
|
||||||
|
tr->w = w;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (it1 != it2)
|
else if (it1 != it2)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue