[evolution] EHTMLEditorView - Don't print coordinates for HISTORY_AND and HISTORY_START events
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - Don't print coordinates for HISTORY_AND and HISTORY_START events
- Date: Thu, 7 May 2015 11:30:47 +0000 (UTC)
commit 5e506c15cfe1d886ad6c4c30fe4cfe4d9e870989
Author: Tomas Popela <tpopela redhat com>
Date: Thu May 7 13:26:22 2015 +0200
EHTMLEditorView - Don't print coordinates for HISTORY_AND and HISTORY_START events
As the coordinates are not important for these events (and are set to 0).
e-util/e-html-editor-view.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 440791e..39cc45f 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -231,9 +231,11 @@ print_node_inner_html (WebKitDOMNode *node)
static void
print_history_event (EHTMLEditorViewHistoryEvent *event)
{
- printf ("HISTORY EVENT: %d ; \n", event->type);
- printf ("\t before: start_x: %u ; start_y: %u ; end_x: %u ; end_y: %u ;\n", event->before.start.x,
event->before.start.y, event->before.end.x, event->before.end.y);
- printf ("\t after: start_x: %u ; start_y: %u ; end_x: %u ; end_y: %u ;\n", event->after.start.x,
event->after.start.y, event->after.end.x, event->after.end.y);
+ if (event->type != HISTORY_START && event->type != HISTORY_AND) {
+ printf ("HISTORY EVENT: %d ; \n", event->type);
+ printf ("\t before: start_x: %u ; start_y: %u ; end_x: %u ; end_y: %u ;\n",
event->before.start.x, event->before.start.y, event->before.end.x, event->before.end.y);
+ printf ("\t after: start_x: %u ; start_y: %u ; end_x: %u ; end_y: %u ;\n",
event->after.start.x, event->after.start.y, event->after.end.x, event->after.end.y);
+ }
switch (event->type) {
case HISTORY_DELETE:
case HISTORY_INPUT:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]