[evolution] EHTMLEditorView - WebKitDOMRange is lost when editing quoted content
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - WebKitDOMRange is lost when editing quoted content
- Date: Mon, 20 Apr 2015 14:57:12 +0000 (UTC)
commit f69e0929b8a2479a6613315ac8988de1119d1dfc
Author: Tomas Popela <tpopela redhat com>
Date: Mon Apr 20 16:38:18 2015 +0200
EHTMLEditorView - WebKitDOMRange is lost when editing quoted content
e-util/e-html-editor-view.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 960e078..fcd35e1 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -2735,8 +2735,7 @@ body_input_event_cb (WebKitDOMElement *element,
view->priv->undo_redo_in_progress = FALSE;
view->priv->dont_save_history_in_body_input = FALSE;
e_html_editor_view_force_spell_check_for_current_paragraph (view);
- g_object_unref (range);
- return;
+ goto out;
}
if (!save_history_after_event_in_table (view)) {
@@ -2919,12 +2918,12 @@ body_input_event_cb (WebKitDOMElement *element,
citation_level = get_citation_level (node, FALSE);
if (citation_level == 0)
- return;
+ goto out;
selection_start_marker = webkit_dom_document_query_selector (
document, "span#-x-evo-selection-start-marker", NULL);
if (selection_start_marker)
- return;
+ goto out;
e_html_editor_selection_save (selection);
@@ -2952,7 +2951,7 @@ body_input_event_cb (WebKitDOMElement *element,
WEBKIT_DOM_NODE (selection_start_marker)));
if (WEBKIT_DOM_IS_HTML_PRE_ELEMENT (parent)) {
e_html_editor_selection_restore (selection);
- return;
+ goto out;
}
if (selection_start_marker) {
@@ -3015,11 +3014,12 @@ body_input_event_cb (WebKitDOMElement *element,
e_html_editor_selection_restore (selection);
e_html_editor_view_force_spell_check_for_current_paragraph (view);
- return;
+ goto out;
}
}
e_html_editor_selection_restore (selection);
}
+ out:
g_object_unref (range);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]