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



commit f8812e4576084e1aa7e2fe8cde8393dcf2fc8d4c
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Feb 24 18:04:48 2016 +0100

    EHTMLEditorView - Critical warning shown when declining a meeting invitation

 .../composer/e-html-editor-view-dom-functions.c    |    2 ++
 1 files changed, 2 insertions(+), 0 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 098e705..e6e548a 100644
--- a/web-extensions/composer/e-html-editor-view-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-view-dom-functions.c
@@ -360,6 +360,8 @@ dom_force_spell_check_in_viewport (WebKitDOMDocument *document,
 
        /* 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]