Preliminary fix to bug 650

Don't omit replacement, when independent nested subcircuit has been checked.
FIXME: Better use the cards level parameter.
This commit is contained in:
Holger Vogt 2023-12-22 17:18:43 +01:00
parent 4671b588b6
commit 37944bd7c4
1 changed files with 3 additions and 0 deletions

View File

@ -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;