From dca71f66c3cf65537017d5add98617a60235e5d7 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sat, 5 Feb 2011 19:47:07 +0100 Subject: Fix undoing, create a unit test for history. --- liblogdiag/ld-diagram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'liblogdiag') 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); -- cgit v1.2.3-70-g09d2