[evolution/gnome-3-16] EHTMLEditorView - Critical warning shown when declining a meeting invitation



commit 9dd16d2a2e36a2b7e433b3660ae878d32d657255
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Apr 16 15:41:48 2015 +0200

    EHTMLEditorView - Critical warning shown when declining a meeting invitation

 e-util/e-html-editor-view.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index bd57f87..95f3b30 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -795,6 +795,8 @@ e_html_editor_view_force_spell_check_in_viewport (EHTMLEditorView *view)
 
        /* We have to add 10 px offset as otherwise just the HTML element will be returned */
        actual = webkit_dom_document_caret_range_from_point (document, 10, 10);
+       if (!actual)
+               return;
 
        /* Append some text on the end of the body */
        text = webkit_dom_document_create_text_node (document, "-x-evo-end");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]