[Pkg-e-commits] [SCM] Enlightenment DR17 toolkit based (based on the EFL) branch, upstream-vcs, updated. 447de88121d145a078f1754a0cfebb704d363821
jethomas
jethomas at alioth.debian.org
Sat Jun 7 18:33:47 UTC 2008
The following commit has been merged in the upstream-vcs branch:
commit 278d2fe38c3d748a2bd88df3ef332ac63f986f70
Author: jethomas <jethomas>
Date: Sun Apr 13 23:40:28 2008 +0000
Fix bug 443.
diff --git a/src/lib/ewl_text.c b/src/lib/ewl_text.c
index 8d5a550..aebe457 100644
--- a/src/lib/ewl_text.c
+++ b/src/lib/ewl_text.c
@@ -470,7 +470,8 @@ ewl_text_text_prepend(Ewl_Text *t, const char *text)
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 @@ ewl_text_text_append(Ewl_Text *t, const char *text)
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 @@ ewl_text_text_insert(Ewl_Text *t, const char *text, unsigned int char_idx)
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)
--
Enlightenment DR17 toolkit based (based on the EFL)
More information about the Pkg-e-commits
mailing list