[evolution/gnome-3-18] Bug 758827 - Evolution crashed in prevent_from_deleting_last_element_in_body()



commit 4cfe98b57397d1fc46d0f1d2a34a6394a8dc9fda
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 66bb16c..d853361 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -3951,7 +3951,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]