[evolution/wip/webkit2] Bug 758015 - Composer lockup
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Bug 758015 - Composer lockup
- Date: Wed, 2 Mar 2016 16:58:43 +0000 (UTC)
commit 35670af8ecf6d56d6165fc00a3db046214fd9008
Author: Tomas Popela <tpopela redhat com>
Date: Wed Mar 2 17:29:20 2016 +0100
Bug 758015 - Composer lockup
.../composer/e-html-editor-view-dom-functions.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-view-dom-functions.c
b/web-extensions/composer/e-html-editor-view-dom-functions.c
index dd6b5ad..adbcada 100644
--- a/web-extensions/composer/e-html-editor-view-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-view-dom-functions.c
@@ -9110,9 +9110,14 @@ key_press_event_process_delete_or_backspace_key (WebKitDOMDocument *document,
}
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) {
+ dom_selection_restore (document);
+ return FALSE;
+ }
+
dom_remove_wrapping_from_element (WEBKIT_DOM_ELEMENT (last_child));
dom_remove_quoting_from_element (WEBKIT_DOM_ELEMENT (last_child));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]