[evolution/gnome-3-20] EHTMLEditorSelection - Selection could be	saved wrong in quoted content
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [evolution/gnome-3-20] EHTMLEditorSelection - Selection could be	saved wrong in quoted content
- Date: Fri,  8 Apr 2016 07:31:22 +0000 (UTC)
commit 5747aeb052c314bab67cb3de844411b30fa8163f
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Mar 30 10:14:51 2016 +0200
    EHTMLEditorSelection - Selection could be saved wrong in quoted content
 e-util/e-html-editor-selection.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index a0db9e5..242ed2a 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -7729,7 +7729,8 @@ e_html_editor_selection_save (EHTMLEditorSelection *selection)
                }
                if (!webkit_dom_node_get_previous_sibling (container)) {
                        split_node = parent_node;
-               } else if (!webkit_dom_node_get_next_sibling (container)) {
+               } else if (!webkit_dom_node_get_next_sibling (container) &&
+                          !WEBKIT_DOM_IS_HTML_BODY_ELEMENT (parent_node)) {
                        split_node = parent_node;
                        split_node = webkit_dom_node_get_next_sibling (split_node);
                } else
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]