[evolution/wip/tpopela/freeze-fixes] EHTMLEditorView - Busy loop after pasting link and pressing Enter key



commit 7fa467790c90d9c2daa0cb28aa0af522a97de3f4
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Mar 20 10:28:26 2015 +0100

    EHTMLEditorView - Busy loop after pasting link and pressing Enter key

 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 61c2fd5..a84dc78 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -2554,7 +2554,7 @@ save_history_for_input (EHTMLEditorView *view)
                parent_start = webkit_dom_node_get_parent_node (WEBKIT_DOM_NODE (element_start));
                parent_end = webkit_dom_node_get_parent_node (WEBKIT_DOM_NODE (element_end));
 
-               while (!webkit_dom_node_is_same_node (parent_start, parent_end)) {
+               while (parent_start && parent_end && !webkit_dom_node_is_same_node (parent_start, 
parent_end)) {
                        webkit_dom_node_insert_before (
                                WEBKIT_DOM_NODE (fragment),
                                webkit_dom_node_clone_node (parent_start, FALSE),


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