Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/lib/canvas
Modified Files:
evas_object_textblock.c
Log Message:
handle null string
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/evas/src/lib/canvas/evas_object_textblock.c,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -3 -r1.104 -r1.105
--- evas_object_textblock.c 14 Sep 2005 14:09:45 -0000 1.104
+++ evas_object_textblock.c 18 Sep 2005 05:36:28 -0000 1.105
@@ -1871,11 +1871,14 @@
}
if (new_line)
{
- if (!white_stripped)
+ if (str)
{
- index = 0;
- ch = evas_common_font_utf8_get_next((unsigned char *)str,
&index);
- if (_is_white(ch)) str += index;
+ if (!white_stripped)
+ {
+ index = 0;
+ ch = evas_common_font_utf8_get_next((unsigned char
*)str, &index);
+ if (_is_white(ch)) str += index;
+ }
}
new_line = 0;
_layout_line_advance(c, fmt);
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs