unselect objects when inserting a symbol using menu or toolbar to avoid moving them together with the inserted symbol

This commit is contained in:
Stefan Frederik 2022-08-06 23:19:26 +02:00
parent ecd006ad5d
commit 9177bcf8bc
1 changed files with 1 additions and 0 deletions

View File

@ -1838,6 +1838,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
int ret;
cmd_found = 1;
xctx->semaphore++;
unselect_all();
xctx->mx_double_save = xctx->mousex_snap;
xctx->my_double_save = xctx->mousey_snap;
if(argc == 4) {