[evolution] 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] Bug 754329 - Runtime warning when pressing Delete at the end of paragraph
- Date: Wed, 2 Sep 2015 17:52:07 +0000 (UTC)
commit 3cff08eec9768e81c09a9d7abd694ec2c193c416
Author: Milan Crha <mcrha redhat com>
Date: Wed Sep 2 19:50:37 2015 +0200
Bug 754329 - Runtime warning when pressing Delete at the end of paragraph
e-util/e-html-editor-view.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index ebe70e1..9a7ca86 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -4107,10 +4107,13 @@ save_history_for_delete_or_backspace (EHTMLEditorView *view,
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]