[evolution/gnome-3-18] Bug 758015 - Composer lockup
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-18] Bug 758015 - Composer lockup
- Date: Fri, 13 Nov 2015 12:39:58 +0000 (UTC)
commit c4563595c874f5a020ddb413904a9e092ff035ba
Author: Tomas Popela <tpopela redhat com>
Date: Fri Nov 13 12:57:48 2015 +0100
Bug 758015 - Composer lockup
The backtrace from the bug showed that we were trying to append a new child into
the parent that did not exist.
e-util/e-html-editor-view.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 0b2c573..0c66b6d 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -5646,9 +5646,14 @@ key_press_event_process_delete_or_backspace_key (EHTMLEditorView *view,
}
last_child = webkit_dom_node_get_last_child (prev_block);
- while (WEBKIT_DOM_IS_HTML_QUOTE_ELEMENT (last_child))
+ while (last_child && WEBKIT_DOM_IS_HTML_QUOTE_ELEMENT (last_child))
last_child = webkit_dom_node_get_last_child (last_child);
+ if (!last_child) {
+ e_html_editor_selection_restore (selection);
+ return FALSE;
+ }
+
remove_wrapping_from_element (WEBKIT_DOM_ELEMENT (last_child));
remove_quoting_from_element (WEBKIT_DOM_ELEMENT (last_child));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]