diff options
author | Tomas Popela <tpopela@redhat.com> | 2014-07-28 19:16:37 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2014-07-29 00:37:16 +0800 |
commit | edc4517cac9d71fb851fe9e58eb07c47db6c2c49 (patch) | |
tree | 2f839eee2bcc79cf8a822b8f53e6dc1d71151e29 | |
parent | d70120c774c68a16b78ce1f830ee55804be9b69e (diff) | |
download | gsoc2013-evolution-edc4517cac9d71fb851fe9e58eb07c47db6c2c49.tar gsoc2013-evolution-edc4517cac9d71fb851fe9e58eb07c47db6c2c49.tar.gz gsoc2013-evolution-edc4517cac9d71fb851fe9e58eb07c47db6c2c49.tar.bz2 gsoc2013-evolution-edc4517cac9d71fb851fe9e58eb07c47db6c2c49.tar.lz gsoc2013-evolution-edc4517cac9d71fb851fe9e58eb07c47db6c2c49.tar.xz gsoc2013-evolution-edc4517cac9d71fb851fe9e58eb07c47db6c2c49.tar.zst gsoc2013-evolution-edc4517cac9d71fb851fe9e58eb07c47db6c2c49.zip |
EHTMLEditorView - Avoid forcing of the spell check when the body has no children
-rw-r--r-- | e-util/e-html-editor-view.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c index e857a308a5..788d9bfb16 100644 --- a/e-util/e-html-editor-view.c +++ b/e-util/e-html-editor-view.c @@ -350,6 +350,9 @@ refresh_spell_check (EHTMLEditorView *view, /* Sometimes the web view is not focused, so we have to save the selection * manually into the body */ if (!selection_start_marker || !selection_end_marker) { + if (!webkit_dom_node_get_first_child (WEBKIT_DOM_NODE (body))) + return; + selection_start_marker = webkit_dom_document_create_element ( document, "SPAN", NULL); webkit_dom_element_set_id ( |