[evolution/wip/webkit2] Bug 758851 - Cannot delete the first empty line using <backspace>
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Bug 758851 - Cannot delete the first empty line using <backspace>
- Date: Wed, 2 Mar 2016 18:15:31 +0000 (UTC)
commit 55b02ade6b81249f8d3726694dbd880698c41599
Author: Tomas Popela <tpopela redhat com>
Date: Wed Mar 2 18:59:45 2016 +0100
Bug 758851 - Cannot delete the first empty line using <backspace>
.../composer/e-html-editor-view-dom-functions.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-view-dom-functions.c
b/web-extensions/composer/e-html-editor-view-dom-functions.c
index 3b4f9b4..9267f4b 100644
--- a/web-extensions/composer/e-html-editor-view-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-view-dom-functions.c
@@ -3340,9 +3340,7 @@ prevent_from_deleting_last_element_in_body (WebKitDOMDocument *document)
body = webkit_dom_document_get_body (document);
node = webkit_dom_node_get_first_child (WEBKIT_DOM_NODE (body));
- if (!node || (
- webkit_dom_node_get_next_sibling (node) &&
- !webkit_dom_node_get_next_sibling (webkit_dom_node_get_next_sibling (node)))) {
+ if (!node || !webkit_dom_node_get_next_sibling (node)) {
gchar *content;
content = webkit_dom_node_get_text_content (WEBKIT_DOM_NODE (body));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]