[evolution/wip/webkit2] Bug 754329 - Runtime warning when pressing Delete at the end of paragraph
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Bug 754329 - Runtime warning when pressing Delete at the end of paragraph
- Date: Tue, 1 Mar 2016 10:56:36 +0000 (UTC)
commit ae0742c98228e07476933eb8a900ff179ea52f8e
Author: Milan Crha <mcrha redhat com>
Date: Tue Mar 1 11:44:08 2016 +0100
Bug 754329 - Runtime warning when pressing Delete at the end of paragraph
.../composer/e-html-editor-view-dom-functions.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 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 aeccddc..c8f5083 100644
--- a/web-extensions/composer/e-html-editor-view-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-view-dom-functions.c
@@ -7484,10 +7484,12 @@ save_history_for_delete_or_backspace (WebKitDOMDocument *document,
next_node = webkit_dom_node_get_next_sibling (
webkit_dom_node_get_next_sibling (next_sibling));
- webkit_dom_range_set_start (
- range_clone, next_node, 0, NULL);
- webkit_dom_range_set_end (
- range_clone, next_node, 1, NULL);
+ if (next_node) {
+ webkit_dom_range_set_start (
+ range_clone, next_node, 0, NULL);
+ webkit_dom_range_set_end (
+ range_clone, next_node, 1, NULL);
+ }
} else {
glong offset;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]