[evolution/gnome-3-16] EHTMLEditorView - Runtime warning when editing HTML message as new



commit 8f7fe073bb102e1f2661fbc8868386304ac5f903
Author: Tomas Popela <tpopela redhat com>
Date:   Mon Apr 27 15:45:42 2015 +0200

    EHTMLEditorView - Runtime warning when editing HTML message as new

 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 f1aae38..cdb24b1 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -701,7 +701,7 @@ refresh_spell_check (EHTMLEditorView *view,
                WebKitDOMNode *child;
 
                child = webkit_dom_node_get_first_child (WEBKIT_DOM_NODE (body));
-               if (!child)
+               if (!child || !WEBKIT_DOM_IS_HTML_ELEMENT (child))
                        return;
 
                add_selection_markers_into_element_start (


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