aboutsummaryrefslogtreecommitdiff
path: root/undo-redo.c
diff options
context:
space:
mode:
Diffstat (limited to 'undo-redo.c')
-rw-r--r--undo-redo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/undo-redo.c b/undo-redo.c
index ba0444a..ece1886 100644
--- a/undo-redo.c
+++ b/undo-redo.c
@@ -162,7 +162,7 @@ int undo() {
case undo_add_con:
{
struct undo_add_con_data* add_con_data = uentry->undo_data;
- delete_connection(add_con_data->con);
+ delete_connection(add_con_data->int1->connection);
}
break;
case undo_del_con:
@@ -246,7 +246,6 @@ int redo() {
{
struct undo_add_con_data* add_con_data = rentry->undo_data;
new_connection(add_con_data->int1, add_con_data->int2, add_con_data->template);
- add_con_data->con = add_con_data->int1->connection;
}
break;
case undo_del_con:
Jeremias Stotters git repositories generated by CGIT