[evolution] EHTMLEditorView - Block is left in quoted content when deleting the last in quoted content when sign
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - Block is left in quoted content when deleting the last in quoted content when sign
- Date: Fri, 30 Jan 2015 09:46:33 +0000 (UTC)
commit eef2fc965e5e400ac18a66e7f801d70ea6e42b2c
Author: Tomas Popela <tpopela redhat com>
Date: Fri Jan 30 10:37:22 2015 +0100
EHTMLEditorView - Block is left in quoted content when deleting the last in quoted content when signature
is presented
e-util/e-html-editor-view.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index b8c8fd2..efa016f 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -2981,9 +2981,13 @@ fix_structure_after_delete_before_quoted_content (EHTMLEditorView *view)
parent = webkit_dom_node_get_parent_node (end_block);
while (parent && WEBKIT_DOM_IS_HTML_QUOTE_ELEMENT (parent)) {
- parent = webkit_dom_node_get_parent_node (parent);
- if (webkit_dom_node_get_next_sibling (parent))
+ WebKitDOMNode *next_parent = webkit_dom_node_get_parent_node (parent);
+
+ if (webkit_dom_node_get_next_sibling (parent) &&
+ !WEBKIT_DOM_IS_HTML_BODY_ELEMENT (next_parent))
goto restore;
+
+ parent = next_parent;
}
}
node = webkit_dom_node_get_next_sibling (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]