diff --git a/src/callback.c b/src/callback.c index 3b108df2..e97fb7e6 100644 --- a/src/callback.c +++ b/src/callback.c @@ -1643,7 +1643,7 @@ int rstate; /* (reduced state, without ShiftMask) */ xctx->mouse_inside = 0; break; case EnterNotify: - dbg(0, "callback(): Enter event, ui_state=%d\n", xctx->ui_state); + dbg(2, "callback(): Enter event, ui_state=%d\n", xctx->ui_state); xctx->mouse_inside = 1; if(draw_xhair) tclvareval(xctx->top_path, ".drw configure -cursor none" , NULL); @@ -1654,19 +1654,16 @@ int rstate; /* (reduced state, without ShiftMask) */ in another xschem xctx->window; STARTCOPY set and selection file does not exist any more */ if(stat(sel_file, &buf) && (xctx->ui_state & STARTCOPY) ) { - here(1111); copy_objects(ABORT); unselect_all(1); } /* xschem window *receiving* selected objects selection cleared --> abort */ else if(!xctx->paste_from && stat(sel_file, &buf) && (xctx->ui_state & STARTMERGE)) { - here(2222); abort_operation(); } /*xschem window *receiving* selected objects * no selected objects and selection file exists --> start merge */ else if(xctx->lastsel == 0 && !stat(sel_file, &buf)) { - here(3333); xctx->mousex_snap = 490; xctx->mousey_snap = -340; merge_file(1, ".sch"); diff --git a/src/move.c b/src/move.c index 774a2ff2..11c83f49 100644 --- a/src/move.c +++ b/src/move.c @@ -550,7 +550,7 @@ void copy_objects(int what) { int l, firstw, firsti; - dbg(0, "end copy: unlink sel_file\n"); + dbg(1, "end copy: unlink sel_file\n"); xunlink(sel_file); set_first_sel(0, -1, 0); /* reset first selected object */ if(xctx->connect_by_kissing == 2) xctx->connect_by_kissing = 0; @@ -948,7 +948,7 @@ void move_objects(int what, int merge, double dx, double dy) { int firsti, firstw; - dbg(0, "end move: unlink sel_file\n"); + dbg(1, "end move: unlink sel_file\n"); xunlink(sel_file); xctx->paste_from = 0; /* end of a paste from clipboard command */ if(xctx->connect_by_kissing == 2) xctx->connect_by_kissing = 0; diff --git a/src/paste.c b/src/paste.c index 9d4b506a..17712a0c 100644 --- a/src/paste.c +++ b/src/paste.c @@ -332,7 +332,6 @@ void merge_file(int selection_load, const char ext[]) { name = clip_file; xctx->paste_from = 1; - here(1234); } if(is_generator(name)) generator = 1;