forked from enlightenment/efl
Evas textblock: Fix and simplify _find_layout_item_line_match which is an helper function used in many parts of textblock.
SVN revision: 52295
This commit is contained in:
parent
108bdeeadd
commit
8b6083ec26
|
@ -3026,20 +3026,20 @@ _find_layout_item_line_match(Evas_Object *obj, Evas_Object_Textblock_Node_Text *
|
|||
{
|
||||
if (it->source_node == n)
|
||||
{
|
||||
Evas_Object_Textblock_Item *itn;
|
||||
int p;
|
||||
|
||||
itn = (Evas_Object_Textblock_Item *)(((Eina_Inlist *)it)->next);
|
||||
p = (int)(it->source_pos + eina_unicode_strlen(it->text));
|
||||
if ((p > pos) ||
|
||||
((p == pos) && (!lnn) &&
|
||||
((!itn) ||
|
||||
((itn) && (itn->source_node != n)))))
|
||||
if (((pos >= (int) it->source_pos) && (pos < p)))
|
||||
{
|
||||
*lnr = ln;
|
||||
*itr = it;
|
||||
return;
|
||||
}
|
||||
else if (p == pos)
|
||||
{
|
||||
*lnr = ln;
|
||||
*itr = it;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue