[evolution/wip/webkit2] Fix the history for Cell dialog
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Fix the history for Cell dialog
- Date: Mon, 25 Jul 2016 13:18:45 +0000 (UTC)
commit 51f2f2b91be990b5e509586301622e57357d07fc
Author: Tomas Popela <tpopela redhat com>
Date: Mon Jul 25 13:35:17 2016 +0200
Fix the history for Cell dialog
.../web-extension/e-dialogs-dom-functions.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/modules/webkit-editor/web-extension/e-dialogs-dom-functions.c
b/modules/webkit-editor/web-extension/e-dialogs-dom-functions.c
index 82c1204..e25d366 100644
--- a/modules/webkit-editor/web-extension/e-dialogs-dom-functions.c
+++ b/modules/webkit-editor/web-extension/e-dialogs-dom-functions.c
@@ -321,11 +321,10 @@ e_dialogs_dom_cell_save_history_on_exit (EEditorPage *editor_page)
ev->data.dom.to = webkit_dom_node_clone_node_with_error (
WEBKIT_DOM_NODE (table), TRUE, NULL);
- if (!webkit_dom_node_is_equal_node (ev->data.dom.from, ev->data.dom.to)) {
- e_editor_dom_selection_get_coordinates (editor_page, &ev->after.start.x, &ev->after.start.y,
&ev->after.end.x, &ev->after.end.y);
- } else {
+ if (ev->data.dom.from && webkit_dom_node_is_equal_node (ev->data.dom.from, ev->data.dom.to))
e_editor_undo_redo_manager_remove_current_history_event (manager);
- }
+ else
+ e_editor_dom_selection_get_coordinates (editor_page, &ev->after.start.x, &ev->after.start.y,
&ev->after.end.x, &ev->after.end.y);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]