aboutsummaryrefslogtreecommitdiff
path: root/liblogdiag
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2011-02-05 19:47:07 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2011-02-05 19:47:07 +0100
commitdca71f66c3cf65537017d5add98617a60235e5d7 (patch)
tree2365d1c909ba92f240b18eacee03f51ee08445a0 /liblogdiag
parent611b11508a910118694b6da0958a022826c07b29 (diff)
downloadlogdiag-dca71f66c3cf65537017d5add98617a60235e5d7.tar.gz
logdiag-dca71f66c3cf65537017d5add98617a60235e5d7.tar.xz
logdiag-dca71f66c3cf65537017d5add98617a60235e5d7.zip
Fix undoing, create a unit test for history.
Diffstat (limited to 'liblogdiag')
-rw-r--r--liblogdiag/ld-diagram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/liblogdiag/ld-diagram.c b/liblogdiag/ld-diagram.c
index 9acea59..bbe8d35 100644
--- a/liblogdiag/ld-diagram.c
+++ b/liblogdiag/ld-diagram.c
@@ -720,7 +720,7 @@ ld_diagram_undo (LdDiagram *self)
action = self->priv->undo_stack;
self->priv->undo_stack = g_list_remove_link (action, action);
- for (sub = g_list_last (action->data); sub; sub = g_list_previous (sub))
+ for (sub = action->data; sub; sub = g_list_next (sub))
ld_undo_action_undo (sub->data);
self->priv->redo_stack = g_list_concat (action, self->priv->redo_stack);