summaryrefslogtreecommitdiff
path: root/gdraw
diff options
context:
space:
mode:
authormichal-n <michal-n>2010-09-12 08:21:43 +0000
committermichal-n <michal-n>2010-09-12 08:21:43 +0000
commit593746e86664c19c0dfc4173c4b9af895630fd7c (patch)
treee1bb23fcf0018d30bc66fd666e8e430eb9a11a76 /gdraw
parentd8f5a5eb19d9149c05fcc9f4f9b326243c791938 (diff)
Khaled Hosny fixed a crash in multiline text editing widget.
Diffstat (limited to 'gdraw')
-rw-r--r--gdraw/gtextfield.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdraw/gtextfield.c b/gdraw/gtextfield.c
index 180b2b30..b8c7ea08 100644
--- a/gdraw/gtextfield.c
+++ b/gdraw/gtextfield.c
@@ -2366,7 +2366,7 @@ return;
static void GTextFieldSetTitle(GGadget *g,const unichar_t *tit) {
GTextField *gt = (GTextField *) g;
unichar_t *old = gt->oldtext;
- if ( u_strcmp(tit,gt->text)==0 ) /* If it doesn't change anything, then don't trash undoes or selection */
+ if ( tit==NULL || u_strcmp(tit,gt->text)==0 ) /* If it doesn't change anything, then don't trash undoes or selection */
return;
gt->oldtext = gt->text;
gt->sel_oldstart = gt->sel_start; gt->sel_oldend = gt->sel_end; gt->sel_oldbase = gt->sel_base;