[evolution/wip/webkit2] History event coordinates are saved wrongly for the Return key press
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] History event coordinates are saved wrongly for the Return key press
- Date: Thu, 21 Jul 2016 12:03:48 +0000 (UTC)
commit fef4d57966afa289bce31fa8702e99bd70bd094b
Author: Tomas Popela <tpopela redhat com>
Date: Thu Jul 21 13:59:09 2016 +0200
History event coordinates are saved wrongly for the Return key press
.../web-extension/e-editor-dom-functions.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/modules/webkit-editor/web-extension/e-editor-dom-functions.c
b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
index 2ee99b0..299e87a 100644
--- a/modules/webkit-editor/web-extension/e-editor-dom-functions.c
+++ b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
@@ -2950,10 +2950,10 @@ body_keydown_event_cb (WebKitDOMElement *element,
manager = e_editor_page_get_undo_redo_manager (editor_page);
e_editor_dom_selection_get_coordinates (editor_page,
- &ev->after.start.x,
- &ev->after.start.y,
- &ev->after.end.x,
- &ev->after.end.y);
+ &ev->before.start.x,
+ &ev->before.start.y,
+ &ev->before.end.x,
+ &ev->before.end.y);
e_editor_undo_redo_manager_insert_history_event (manager, ev);
}
out:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]