[evolution] EHTMLEditorView - Critical warning shown when declining a meeting invitation



commit 115e122ea689549204720d8985adc974eef33d79
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 fb4a5eb..49c1bcb 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]