Evas textblock: Fixed issue with charwrap causing an infinite loop.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:45:28 +0000 (10:45 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:45:28 +0000 (10:45 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@56539 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index 7bb42d3..6afbdf6 100644 (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;
 }