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



commit 8393aaa557e32f9537ae4c7d3a75c90df2f4d269
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Mar 2 18:57:20 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 1719c65..0baeb33 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)
+               if (content && !*content)
                        ret_val = TRUE;
 
                g_free (content);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]