Enlightenment CVS committal
Author : jethomas
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_text.c
Log Message:
Fix bug 443.
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text.c,v
retrieving revision 1.196
retrieving revision 1.197
diff -u -3 -r1.196 -r1.197
--- ewl_text.c 9 Apr 2008 00:35:11 -0000 1.196
+++ ewl_text.c 13 Apr 2008 23:40:28 -0000 1.197
@@ -470,7 +470,8 @@
DCHECK_PARAM_PTR(t);
/* don't do anything if there is no text */
- if (!text) DRETURN(DLEVEL_STABLE);
+ if ((!text) || (!text[0]))
+ DRETURN(DLEVEL_STABLE);
/* don't insert text if we already reached the maximum */
if (t->length.max_chars && t->length.chars >= t->length.max_chars)
@@ -514,7 +515,8 @@
DCHECK_TYPE(t, EWL_TEXT_TYPE);
/* don't do anything if there is no text */
- if (!text) DRETURN(DLEVEL_STABLE);
+ if ((!text) || (!text[0]))
+ DRETURN(DLEVEL_STABLE);
/* don't insert text if we already reached the maximum */
if (t->length.max_chars && t->length.chars >= t->length.max_chars)
@@ -558,7 +560,8 @@
DCHECK_TYPE(t, EWL_TEXT_TYPE);
/* don't do anything if there is no text */
- if (!text) DRETURN(DLEVEL_STABLE);
+ if ((!text) || (!text[0]))
+ DRETURN(DLEVEL_STABLE);
/* don't insert text if we already reached the maximum */
if (t->length.max_chars && t->length.chars >= t->length.max_chars)
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs