[evolution/gnome-3-18] Bug 762429 - List item is removed when the Return is pressed on its end
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-18] Bug 762429 - List item is removed when the Return is pressed on its end
- Date: Mon, 22 Feb 2016 09:12:22 +0000 (UTC)
commit 76af63a2c1ed1185accd9aa6beecfa5e9dfe2c64
Author: Tomas Popela <tpopela redhat com>
Date: Mon Feb 22 10:11:50 2016 +0100
Bug 762429 - List item is removed when the Return is pressed on its end
Regression after commit 6c09c26.
e-util/e-html-editor-view.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 578a66c..575523c 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -5435,8 +5435,6 @@ selection_is_in_empty_list_item (WebKitDOMNode *selection_start_marker)
gchar *text;
WebKitDOMNode *sibling;
- sibling = webkit_dom_node_get_previous_sibling (WEBKIT_DOM_NODE (selection_start_marker));
-
/* Selection needs to be collapsed. */
sibling = webkit_dom_node_get_next_sibling (WEBKIT_DOM_NODE (selection_start_marker));
if (!e_html_editor_node_is_selection_position_node (sibling))
@@ -5450,8 +5448,7 @@ selection_is_in_empty_list_item (WebKitDOMNode *selection_start_marker)
if (sibling && webkit_dom_node_get_next_sibling (sibling))
return FALSE;
- if (!sibling)
- return TRUE;
+ sibling = webkit_dom_node_get_previous_sibling (WEBKIT_DOM_NODE (selection_start_marker));
/* Only text node with the zero width space character is allowed. */
if (!WEBKIT_DOM_IS_TEXT (sibling))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]