[evolution] EHTMLEditorView - Fix critical warning when creating Address and Header 1 - 6 blocks
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - Fix critical warning when creating Address and Header 1 - 6 blocks
- Date: Thu, 14 Aug 2014 13:23:26 +0000 (UTC)
commit 915bb0b5425da855e019fb57a41c837d5ac4313e
Author: Tomas Popela <tpopela redhat com>
Date: Thu Aug 14 15:03:50 2014 +0200
EHTMLEditorView - Fix critical warning when creating Address and Header 1 - 6 blocks
e-util/e-html-editor-view.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 8b92b3d..e5887ef 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));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]