From 915bb0b5425da855e019fb57a41c837d5ac4313e Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Thu, 14 Aug 2014 15:03:50 +0200 Subject: EHTMLEditorView - Fix critical warning when creating Address and Header 1 - 6 blocks --- e-util/e-html-editor-view.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c index 8b92b3d791..e5887ef3a6 100644 --- a/e-util/e-html-editor-view.c +++ b/e-util/e-html-editor-view.c @@ -220,7 +220,9 @@ get_parent_block_element (WebKitDOMNode *node) !WEBKIT_DOM_IS_HTML_QUOTE_ELEMENT (parent) && !WEBKIT_DOM_IS_HTMLU_LIST_ELEMENT (parent) && !WEBKIT_DOM_IS_HTMLO_LIST_ELEMENT (parent) && - !WEBKIT_DOM_IS_HTML_PRE_ELEMENT (parent)) { + !WEBKIT_DOM_IS_HTML_PRE_ELEMENT (parent) && + !WEBKIT_DOM_IS_HTML_HEADING_ELEMENT (parent) && + !element_has_tag (parent, "address")) { parent = webkit_dom_node_get_parent_element ( WEBKIT_DOM_NODE (parent)); } -- cgit v1.2.3