Evas textblock: make charwrap not force wrap in an illegal position.

SVN revision: 59965
This commit is contained in:
Tom Hacohen 2011-06-05 10:51:39 +00:00
parent d02f25e1ff
commit 2e28418051
1 changed files with 1 additions and 3 deletions

View File

@ -3179,9 +3179,7 @@ _layout_get_charwrap(Ctxt *c, Evas_Object_Textblock_Format *fmt,
}
if (uwrap == line_start)
MOVE_NEXT_UNTIL(len, uwrap);
if ((uwrap < line_start) || (uwrap > len))
if ((uwrap <= line_start) || (uwrap > len))
return -1;
return uwrap;