[evolution/wip/webkit2] EHTMLEditorSelection - Selection start marker could be wrongly saved before the quote character
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] EHTMLEditorSelection - Selection start marker could be wrongly saved before the quote character
- Date: Tue, 1 Mar 2016 14:49:31 +0000 (UTC)
commit 58a6d3115b149ff2b6051f49186cc0da093c9b48
Author: Tomas Popela <tpopela redhat com>
Date: Tue Mar 1 14:54:26 2016 +0100
EHTMLEditorSelection - Selection start marker could be wrongly saved before the quote character
.../e-html-editor-selection-dom-functions.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-selection-dom-functions.c
b/web-extensions/composer/e-html-editor-selection-dom-functions.c
index aa75b4c..5c8bf2d 100644
--- a/web-extensions/composer/e-html-editor-selection-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-selection-dom-functions.c
@@ -1551,8 +1551,15 @@ dom_selection_save (WebKitDOMDocument *document)
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]