Evas_Object *obj;
size_t pos;
Evas_Object_Textblock_Node_Text *node;
-
};
struct _Evas_Object_Textblock
}
if ((wrap > line_start) ||
- ((wrap == line_start) && (ALLOW_BREAK(wrap))))
+ ((wrap == line_start) && (ALLOW_BREAK(wrap)) && (wrap < len)))
{
/* We found a suitable wrapping point, break here. */
MOVE_NEXT_UNTIL(len, wrap);
}
- if (wrap < len)
+ if ((wrap < len) && (wrap > line_start))
{
MOVE_NEXT_UNTIL(len, wrap);
return wrap;
/*FIXME: I should handle format correctly,
i.e verify we are allowed to break here */
_layout_line_advance(c, it->format);
+ wrap = -1;
}
}
else
item */
i = eina_list_prev(i);
it = eina_list_data_get(i);
- while (uwrap <= it->text_pos)
+ while (uwrap < it->text_pos)
{
c->ln->items = _ITEM(
eina_inlist_remove(