Evas textblock: Fixed charwrap for very small textblocks.

SVN revision: 60185
This commit is contained in:
Tom Hacohen 2011-06-10 10:12:51 +00:00
parent 917b378841
commit 04207db6b7
1 changed files with 2 additions and 0 deletions

View File

@ -3179,6 +3179,8 @@ _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))
return -1;