Skip to content
Snippets Groups Projects
Commit e96f2f17 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

fixed elusive problem with undo where actions did not behave properly because...

fixed elusive problem with undo where actions did not behave properly because of failing to update canvas_undo_name
parent 60f334b5
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,7 @@ void canvas_undo_undo(t_canvas *x)
we_are_undoing = 1;
//fprintf(stderr,"canvas_undo_undo %d\n", x->u_last->type);
glist_noselect(x);
canvas_undo_name = x->u_last->name;
switch(x->u_last->type)
{
case 1: canvas_undo_connect(x, x->u_last->data, UNDO_UNDO); break; //connect
......@@ -99,6 +100,7 @@ void canvas_undo_redo(t_canvas *x)
x->u_last = x->u_last->next;
//fprintf(stderr,"canvas_undo_redo %d\n", x->u_last->type);
glist_noselect(x);
canvas_undo_name = x->u_last->name;
switch(x->u_last->type)
{
case 1: canvas_undo_connect(x, x->u_last->data, UNDO_REDO); break; //connect
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment