diff options
author | Tomas Popela <tpopela@redhat.com> | 2014-09-11 20:51:28 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2014-09-11 20:51:28 +0800 |
commit | 23b58cb88ec9430015b413797172d29b3ea2a326 (patch) | |
tree | e87ab27d06933a8cc0804532934466deac1f834f | |
parent | 68a666b9072fae1f61247f45a36dec20b5f5f569 (diff) | |
download | gsoc2013-evolution-23b58cb88ec9430015b413797172d29b3ea2a326.tar gsoc2013-evolution-23b58cb88ec9430015b413797172d29b3ea2a326.tar.gz gsoc2013-evolution-23b58cb88ec9430015b413797172d29b3ea2a326.tar.bz2 gsoc2013-evolution-23b58cb88ec9430015b413797172d29b3ea2a326.tar.lz gsoc2013-evolution-23b58cb88ec9430015b413797172d29b3ea2a326.tar.xz gsoc2013-evolution-23b58cb88ec9430015b413797172d29b3ea2a326.tar.zst gsoc2013-evolution-23b58cb88ec9430015b413797172d29b3ea2a326.zip |
EHTMLEditorView - Don't try to fix the HTML structure after pasting when it is not needed
-rw-r--r-- | 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 22de2e6f37..58b23bde4d 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 = |