[evolution/gnome-3-18] EHTMLEditorSelection - Selection start marker could be wrongly saved before the quote character
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-18] EHTMLEditorSelection - Selection start marker could be wrongly saved before the quote character
- Date: Tue, 29 Sep 2015 08:41:24 +0000 (UTC)
commit 7850cdde6b8c2356bdab87da1c378312521bf2ad
Author: Tomas Popela <tpopela redhat com>
Date: Fri Sep 25 12:35:10 2015 +0200
EHTMLEditorSelection - Selection start marker could be wrongly saved before the quote character
e-util/e-html-editor-selection.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index ff805ed..d67a3f6 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -7264,8 +7264,15 @@ e_html_editor_selection_save (EHTMLEditorSelection *selection)
WEBKIT_DOM_NODE (start_marker),
next_sibling,
NULL);
- goto insert_end_marker;
+ } else {
+ webkit_dom_node_insert_before (
+ node,
+ WEBKIT_DOM_NODE (start_marker),
+ webkit_dom_node_get_next_sibling (
+ webkit_dom_node_get_parent_node (parent_node)),
+ NULL);
}
+ goto insert_end_marker;
} else if (element_has_class (WEBKIT_DOM_ELEMENT (parent_node), "-x-evo-smiley-text")) {
WebKitDOMNode *node;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]