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
This commit is contained in:
parent
712b985333
commit
3fecba878c
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue