From 5b72e307df940c752c5897c5cdd4d0b4e57e985a Mon Sep 17 00:00:00 2001 From: Stefan Schippers Date: Sat, 3 Oct 2020 01:13:35 +0200 Subject: [PATCH] fix erroneous slotted instance recognition (confuse U2[3:0] with U3:2) in translate(), breaking in some cases the "net name on instance pin" feature --- src/callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callback.c b/src/callback.c index bf122079..2322d450 100644 --- a/src/callback.c +++ b/src/callback.c @@ -139,7 +139,7 @@ int callback(int event, int mx, int my, KeySym key, mousey=Y_TO_XSCHEM(my); mousex_snap=ROUND(mousex / cadsnap) * cadsnap; mousey_snap=ROUND(mousey / cadsnap) * cadsnap; - my_snprintf(str, S(str), "mouse = %.16g %.16g - selected: %d path: %s", + if(lastselected > 1) my_snprintf(str, S(str), "mouse = %.16g %.16g - selected: %d path: %s", mousex_snap, mousey_snap, lastselected, sch_path[currentsch] ); statusmsg(str,1); switch(event)