various fixes in add net when separating components

This commit is contained in:
Stefan Frederik 2022-01-19 10:15:52 +01:00
parent 0ab2a9631a
commit 41738166e3
2 changed files with 4 additions and 1 deletions

View File

@ -713,12 +713,14 @@ int connect_by_kissing(void)
}
if(kissing) {
dbg(0, "connect_by_kissing(): adding wire in %g %g, wires before = %d\n", pinx0, piny0, xctx->wires);
dbg(1, "connect_by_kissing(): adding wire in %g %g, wires before = %d\n", pinx0, piny0, xctx->wires);
if(!done_undo) {
xctx->push_undo();
done_undo = 1;
}
storeobject(-1, pinx0, piny0, pinx0, piny0, WIRE, 0, SELECTED1, NULL);
/* storeobject sets modify, but we clear it here, will be set if move operation completes */
set_modify(0);
changed = 1;
xctx->need_reb_sel_arr = 1;
}

View File

@ -1052,6 +1052,7 @@ void move_objects(int what, int merge, double dx, double dy)
}
if(what & ABORT) /* draw objects while moving */
{
if(xctx->kissing) pop_undo(0, 0);
draw_selection(xctx->gctiled,0);
xctx->move_rot=xctx->move_flip=xctx->deltax=xctx->deltay=0;
xctx->ui_state &= ~STARTMOVE;