[evolution] EHTMLEditorView - Avoid crash when pressing the BackSpace in the beginning of quoted text
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - Avoid crash when pressing the BackSpace in the beginning of quoted text
- Date: Fri, 9 Jan 2015 06:45:07 +0000 (UTC)
commit 11ec72566e4c0d91de5a935a75e5642d28a94d18
Author: Tomas Popela <tpopela redhat com>
Date: Fri Jan 9 07:40:57 2015 +0100
EHTMLEditorView - Avoid crash when pressing the BackSpace in the beginning of quoted text
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 eb3e61d..5494de9 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -2748,12 +2748,6 @@ change_quoted_block_to_normal (EHTMLEditorView *view)
remove_quoting_from_element (block);
remove_wrapping_from_element (block);
- block = e_html_editor_selection_wrap_paragraph_length (
- selection, block, length);
- webkit_dom_node_normalize (WEBKIT_DOM_NODE (block));
- quote_plain_text_element_after_wrapping (
- document, block, citation_level - 1);
-
parent = webkit_dom_node_get_parent_node (WEBKIT_DOM_NODE (block));
if (!webkit_dom_node_get_previous_sibling (WEBKIT_DOM_NODE (block))) {
@@ -2801,6 +2795,12 @@ change_quoted_block_to_normal (EHTMLEditorView *view)
clone,
NULL);
}
+
+ block = e_html_editor_selection_wrap_paragraph_length (
+ selection, block, length);
+ webkit_dom_node_normalize (WEBKIT_DOM_NODE (block));
+ quote_plain_text_element_after_wrapping (
+ document, block, citation_level - 1);
}
return success;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]