Evas textblock: Fix a potential bug in wrapping.

SVN revision: 59464
This commit is contained in:
Tom Hacohen 2011-05-17 07:08:33 +00:00
parent 43397834ac
commit dd503b47fd
1 changed files with 4 additions and 1 deletions

View File

@ -3488,7 +3488,10 @@ _layout_visualize_par(Ctxt *c)
EINA_INLIST_GET(it)));
continue;
}
else if (uwrap >= ti->parent.text_pos +
/* If it points to the end, it means the previous
* char is a whitespace we should remove, so this
* is a wanted cutting point. */
else if (uwrap > ti->parent.text_pos +
ti->text_props.text_len)
wrap = -1; /* Delay the cut in a smart way
i.e use the item_pos as the line_start, because