From 3fecba878c51c33847839007e87f2738c199b942 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Mon, 23 Dec 2024 02:22:40 +0100 Subject: [PATCH] fix double push_undo() call when adding a wire in intuitive_interface (by click and drag from a wire endpoint or symbol pin). This led to inconsistencies (spurious connecting dots on wires) when doing an Undo operation --- src/callback.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/callback.c b/src/callback.c index 356335e9..eb53f912 100644 --- a/src/callback.c +++ b/src/callback.c @@ -1445,6 +1445,7 @@ static int add_wire_from_inst_pin(Selected *sel, double mx, double my) xctx->kissing = 1; rebuild_selected_array(); move_objects(START,0,0,0); + xctx->ui_state |= START_SYMPIN; /* avoid double push_undo() in move_objects() */ res = 1; } } else if(type == WIRE) { @@ -1465,6 +1466,7 @@ static int add_wire_from_inst_pin(Selected *sel, double mx, double my) xctx->kissing = 1; rebuild_selected_array(); move_objects(START,0,0,0); + xctx->ui_state |= START_SYMPIN; /* avoid double push_undo() in move_objects() */ res = 1; } }