[evolution] EHTMLEditorView - Don't try to fix the HTML structure after pasting when it is not needed



commit 23b58cb88ec9430015b413797172d29b3ea2a326
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Sep 11 14:51:28 2014 +0200

    EHTMLEditorView - Don't try to fix the HTML structure after pasting when it is not needed

 e-util/e-html-editor-view.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 22de2e6..58b23bd 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -4471,6 +4471,8 @@ fix_structure_after_pasting_multiline_content (WebKitDOMNode *node)
         * first line into one element. So we have to take it out
         * of this element and insert it after that element. */
        parent = webkit_dom_node_get_parent_node (node);
+       if (WEBKIT_DOM_IS_HTML_BODY_ELEMENT (parent))
+               return;
        first_child = webkit_dom_node_get_first_child (parent);
        while (first_child) {
                WebKitDOMNode *next_child =


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