diff options
author | Tomas Popela <tpopela@redhat.com> | 2016-01-15 14:16:42 +0100 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2016-01-15 14:41:47 +0100 |
commit | 77831fb11701bb409dd832b54a9f0cf5accd40d9 (patch) | |
tree | 62518cccaa6e77d92f71b30217de1005a29fc858 | |
parent | 629f7544baf217b803f35532aa7d676f235f95ca (diff) | |
download | evolution-77831fb11701bb409dd832b54a9f0cf5accd40d9.tar.gz |
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.
-rw-r--r-- | 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 f908be0242..25e616193d 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); |