[evolution] Selection end marker could be saved wrong in the quoted content
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Selection end marker could be saved wrong in the quoted content
- Date: Tue, 6 Sep 2016 14:53:31 +0000 (UTC)
commit 6c4519413ff4119648e3aa62f786c14f3dbb61f7
Author: Tomas Popela <tpopela redhat com>
Date: Mon Sep 5 14:52:58 2016 +0200
Selection end marker could be saved wrong in the quoted content
.../web-extension/e-editor-dom-functions.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/modules/webkit-editor/web-extension/e-editor-dom-functions.c
b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
index 1d8bfde..eb2f7bb 100644
--- a/modules/webkit-editor/web-extension/e-editor-dom-functions.c
+++ b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
@@ -12882,8 +12882,11 @@ e_editor_dom_selection_save (EEditorPage *editor_page)
!WEBKIT_DOM_IS_HTML_BODY_ELEMENT (parent_node)) {
split_node = parent_node;
split_node = webkit_dom_node_get_next_sibling (split_node);
- } else
- split_node = container;
+ } else {
+ webkit_dom_node_append_child (
+ container, WEBKIT_DOM_NODE (end_marker), NULL);
+ goto out;
+ }
}
/* Don't save selection straight into body */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]