[evolution/wip/webkit2] Bug 758827 - Evolution crashed in prevent_from_deleting_last_element_in_body()



commit 7389292782434b61d0d5d10c3f8185ec78335990
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Mar 2 18:58:31 2016 +0100

    Bug 758827 - Evolution crashed in prevent_from_deleting_last_element_in_body()

 .../composer/e-html-editor-view-dom-functions.c    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-view-dom-functions.c 
b/web-extensions/composer/e-html-editor-view-dom-functions.c
index 0baeb33..3b4f9b4 100644
--- a/web-extensions/composer/e-html-editor-view-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-view-dom-functions.c
@@ -3347,7 +3347,7 @@ prevent_from_deleting_last_element_in_body (WebKitDOMDocument *document)
 
                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]