[evolution/gnome-3-20] Bug 769523 - bold key/button erases text
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-20] Bug 769523 - bold key/button erases text
- Date: Fri, 5 Aug 2016 06:00:17 +0000 (UTC)
commit b10ed9ce3b67f7dfd7a74863a62f5ec3960f6922
Author: Tomas Popela <tpopela redhat com>
Date: Fri Aug 5 07:56:48 2016 +0200
Bug 769523 - bold key/button erases text
Add a check that was omitted when backporting commit 5d32196
e-util/e-html-editor-utils.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-utils.c b/e-util/e-html-editor-utils.c
index 4917f7b..f04dbce 100644
--- a/e-util/e-html-editor-utils.c
+++ b/e-util/e-html-editor-utils.c
@@ -308,6 +308,7 @@ remove_node_if_empty (WebKitDOMNode *node)
next_sibling = webkit_dom_node_get_next_sibling (child);
/* Empty or BR as sibling, but no sibling after it. */
if (!webkit_dom_node_get_first_child (child) &&
+ !WEBKIT_DOM_IS_TEXT (child) &&
(!prev_sibling ||
(WEBKIT_DOM_IS_HTMLBR_ELEMENT (prev_sibling) &&
!webkit_dom_node_get_previous_sibling (prev_sibling))) &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]