[evolution/gnome-3-18] EHTMLEditorView - Redoing the Return key press in the list can fail
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-18] EHTMLEditorView - Redoing the Return key press in the list can fail
- Date: Fri, 15 Jan 2016 13:55:50 +0000 (UTC)
commit 77831fb11701bb409dd832b54a9f0cf5accd40d9
Author: Tomas Popela <tpopela redhat com>
Date: Fri Jan 15 14:16:42 2016 +0100
EHTMLEditorView - Redoing the Return key press in the list can fail
This could happen when the Return key is pressed in the last item of the list
and that item is also empty (usually this is done to end the list). When redoing
this event the DOM structure is restored wrongly. To correct this bug we have to
mark the history event correctly.
e-util/e-html-editor-view.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index f908be0..25e6161 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -5473,6 +5473,9 @@ return_pressed_in_empty_list_item (EHTMLEditorView *view)
&ev->before.end.y);
fragment = webkit_dom_document_create_document_fragment (document);
+
+ g_object_set_data (
+ G_OBJECT (fragment), "history-return-key", GINT_TO_POINTER (1));
}
list = split_node_into_two (parent, -1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]