[evolution/gnome-3-18] EHTMLEditorView - Don't check for links if we cannot obtain valid block
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-18] EHTMLEditorView - Don't check for links if we cannot obtain valid block
- Date: Sun, 6 Dec 2015 14:10:32 +0000 (UTC)
commit bfb3cf784fac0ea0c41f316f9c2cfa1912ce04dd
Author: Tomas Popela <tpopela redhat com>
Date: Sun Dec 6 13:35:02 2015 +0100
EHTMLEditorView - Don't check for links if we cannot obtain valid block
e-util/e-html-editor-view.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index a2af9a5..e513dd9 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -1458,7 +1458,9 @@ html_editor_view_check_magic_links (EHTMLEditorView *view,
block = e_html_editor_get_parent_block_node_from_child (node);
/* Get previous block */
- block = webkit_dom_node_get_previous_sibling (block);
+ if (!(block = webkit_dom_node_get_previous_sibling (block)))
+ return;
+
/* If block is quoted content, get the last block there */
while (block && WEBKIT_DOM_IS_HTML_QUOTE_ELEMENT (block))
block = webkit_dom_node_get_last_child (block);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]