[evolution] 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] EHTMLEditorView - Redoing the Return key press in the list can fail
- Date: Fri, 15 Jan 2016 13:39:09 +0000 (UTC)
commit 263ca32ae9b2dd1097877e6f7958607f7047afd9
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 20aa999..c64003c 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]