merge_file: do not start move_objects(RUBBER,...) if nothing to merge found

This commit is contained in:
stefan schippers 2025-12-19 13:06:57 +01:00
parent 7d8ce2f9ad
commit 9ab3cad8a1
1 changed files with 5 additions and 3 deletions

View File

@ -465,9 +465,11 @@ void merge_file(int selection_load, const char ext[])
dbg(1, "End merge_file(): loaded file %s: wire=%d inst=%d ui_state=%ld\n", dbg(1, "End merge_file(): loaded file %s: wire=%d inst=%d ui_state=%ld\n",
name, xctx->wires , xctx->instances, xctx->ui_state); name, xctx->wires , xctx->instances, xctx->ui_state);
move_objects(START,0,0,0); move_objects(START,0,0,0);
xctx->mousex_snap = xctx->mx_double_save; if(xctx->lastsel) {
xctx->mousey_snap = xctx->my_double_save; xctx->mousex_snap = xctx->mx_double_save;
if(rubber) move_objects(RUBBER,0,0,0); xctx->mousey_snap = xctx->my_double_save;
if(rubber) move_objects(RUBBER,0,0,0);
}
} else { } else {
dbg(0, "merge_file(): can not open %s\n", name); dbg(0, "merge_file(): can not open %s\n", name);
xctx->paste_from = 0; xctx->paste_from = 0;