aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Popela <tpopela@redhat.com>2014-09-05 19:34:15 +0800
committerTomas Popela <tpopela@redhat.com>2014-09-05 19:51:43 +0800
commit04b05bf605cdad727ad17ed632a37a6635c79f19 (patch)
tree099002c54ddea6843a0ed2f073d567c2fd3fe55c
parent2d345f3d94a85360e92ef566257c1bc738b6cdc2 (diff)
downloadgsoc2013-evolution-04b05bf605cdad727ad17ed632a37a6635c79f19.tar
gsoc2013-evolution-04b05bf605cdad727ad17ed632a37a6635c79f19.tar.gz
gsoc2013-evolution-04b05bf605cdad727ad17ed632a37a6635c79f19.tar.bz2
gsoc2013-evolution-04b05bf605cdad727ad17ed632a37a6635c79f19.tar.lz
gsoc2013-evolution-04b05bf605cdad727ad17ed632a37a6635c79f19.tar.xz
gsoc2013-evolution-04b05bf605cdad727ad17ed632a37a6635c79f19.tar.zst
gsoc2013-evolution-04b05bf605cdad727ad17ed632a37a6635c79f19.zip
EHTMLEditorSelection - Avoid the runtime warning when the caret was saved outside of the body
This could happen during the HTML -> plain text conversion.
-rw-r--r--e-util/e-html-editor-selection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 84f6fbc41c..d2b4121900 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -2612,7 +2612,8 @@ get_parent_indented_block (WebKitDOMNode *node)
if (element_has_class (WEBKIT_DOM_ELEMENT (parent), "-x-evo-indented"))
block = parent;
- while (parent && !WEBKIT_DOM_IS_HTML_BODY_ELEMENT (parent)) {
+ while (parent && !WEBKIT_DOM_IS_HTML_BODY_ELEMENT (parent) &&
+ !WEBKIT_DOM_IS_HTML_HTML_ELEMENT (parent)) {
if (element_has_class (WEBKIT_DOM_ELEMENT (parent), "-x-evo-indented"))
block = parent;
parent = webkit_dom_node_get_parent_node (parent);