[evolution/wip/webkit-composer: 183/262] Check for empty string when setting plain text.
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 183/262] Check for empty string when setting plain text.
- Date: Thu, 16 Jan 2014 10:03:15 +0000 (UTC)
commit 6f6c59146583e3c1dd5870a03cac5347b7f77977
Author: Tomas Popela <tpopela redhat com>
Date: Tue Apr 16 10:08:53 2013 +0200
Check for empty string when setting plain text.
e-util/e-editor-widget.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-editor-widget.c b/e-util/e-editor-widget.c
index d07bfc8..a516d67 100644
--- a/e-util/e-editor-widget.c
+++ b/e-util/e-editor-widget.c
@@ -1487,7 +1487,9 @@ e_editor_widget_set_html_mode (EEditorWidget *widget,
gchar *plain;
plain = e_editor_widget_get_text_plain (widget);
- e_editor_widget_set_text_plain (widget, plain);
+
+ if (*plain)
+ e_editor_widget_set_text_plain (widget, plain);
g_free (plain);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]