Evas textblock: Fixed issue with charwrap causing an infinite loop.

SVN revision: 56539
This commit is contained in:
Tom Hacohen 2011-01-30 10:45:28 +00:00
parent a7e2bbabae
commit 620c9f1cb7
1 changed files with 2 additions and 0 deletions

View File

@ -3018,6 +3018,8 @@ _layout_get_charwrap(Ctxt *c, Evas_Object_Textblock_Format *fmt,
wrap = _layout_text_cutoff_get(c, fmt, ti);
if (wrap == 0)
GET_NEXT(ti->text, wrap);
if (!ti->text[wrap])
wrap = -1;
return wrap;
}