aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/e-text/e-text-model.c5
-rw-r--r--widgets/text/e-text-model.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/widgets/e-text/e-text-model.c b/widgets/e-text/e-text-model.c
index d571e87791..6ca650867c 100644
--- a/widgets/e-text/e-text-model.c
+++ b/widgets/e-text/e-text-model.c
@@ -131,7 +131,10 @@ e_text_model_destroy (GtkObject *object)
static gchar *
e_text_model_real_get_text(ETextModel *model)
{
- return model->text;
+ if (model->text)
+ return model->text;
+ else
+ return "";
}
static void
diff --git a/widgets/text/e-text-model.c b/widgets/text/e-text-model.c
index d571e87791..6ca650867c 100644
--- a/widgets/text/e-text-model.c
+++ b/widgets/text/e-text-model.c
@@ -131,7 +131,10 @@ e_text_model_destroy (GtkObject *object)
static gchar *
e_text_model_real_get_text(ETextModel *model)
{
- return model->text;
+ if (model->text)
+ return model->text;
+ else
+ return "";
}
static void