[evolution] EHTMLEditorView - After undoing the HISTORY_DELETE operation always re-wrap and re-quote current blo
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - After undoing the HISTORY_DELETE operation always re-wrap and re-quote current blo
- Date: Fri, 20 Nov 2015 13:41:20 +0000 (UTC)
commit 5c356565626084b65588950b08dbaa80924593e6
Author: Tomas Popela <tpopela redhat com>
Date: Fri Nov 20 14:34:34 2015 +0100
EHTMLEditorView - After undoing the HISTORY_DELETE operation always re-wrap and re-quote current block
e-util/e-html-editor-view.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 6a330ad..ecb3b3f 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -12908,12 +12908,12 @@ undo_delete (EHTMLEditorView *view,
remove_node (WEBKIT_DOM_NODE (element));
- if (event->type == HISTORY_DELETE && !view->priv->html_mode &&
- !webkit_dom_document_fragment_query_selector (event->data.fragment, ".-x-evo-quoted",
NULL)) {
+ if (event->type == HISTORY_DELETE && !view->priv->html_mode) {
WebKitDOMNode *current_block;
current_block = e_html_editor_get_parent_block_node_from_child (parent);
- wrap_and_quote_element (view, WEBKIT_DOM_ELEMENT (current_block));
+ if (get_citation_level (current_block, FALSE) > 0)
+ wrap_and_quote_element (view, WEBKIT_DOM_ELEMENT (current_block));
}
/* If the selection markers are presented restore the selection,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]