[evolution] Bug 758827 - Evolution crashed in prevent_from_deleting_last_element_in_body()
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 758827 - Evolution crashed in prevent_from_deleting_last_element_in_body()
- Date: Tue, 1 Dec 2015 10:13:18 +0000 (UTC)
commit fbb5561e26961975d694bd43d8b3a0204a2009f3
Author: Tomas Popela <tpopela redhat com>
Date: Tue Dec 1 09:36:01 2015 +0100
Bug 758827 - Evolution crashed in prevent_from_deleting_last_element_in_body()
Follow-up fix as we need to prevent from deleting the last element in body when
there is none or empty text content.
e-util/e-html-editor-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 7d6e89e..e67dad2 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -3960,7 +3960,7 @@ prevent_from_deleting_last_element_in_body (EHTMLEditorView *view)
content = webkit_dom_node_get_text_content (WEBKIT_DOM_NODE (body));
- if (content && !*content)
+ if (!content || !*content)
ret_val = TRUE;
g_free (content);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]