From 37944bd7c4cf05e54e1522d109c8f0b848595c2e Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 22 Dec 2023 17:18:43 +0100 Subject: [PATCH] Preliminary fix to bug 650 Don't omit replacement, when independent nested subcircuit has been checked. FIXME: Better use the cards level parameter. --- src/frontend/inpcom.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 327311b71..026d43661 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -8165,6 +8165,9 @@ static void inp_meas_current(struct card *deck) else if (ciprefix(".ends", curr_line)) { subs--; subc_start = subc_prev; + /* FIXME: just a hack, needs proper levelling */ + if (subs == 0) + subc_start = NULL; } else continue;