From c86cd740d68b77354bd093c2ed5ed31a82e3af0f Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 27 Mar 2020 11:32:42 +0100 Subject: [PATCH] fix a bug: re-enable reading vecs with length 1 Bug reported by LM --- src/sharedspice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sharedspice.c b/src/sharedspice.c index 839db8c43..97cde9730 100644 --- a/src/sharedspice.c +++ b/src/sharedspice.c @@ -1884,7 +1884,7 @@ int sh_ExecutePerLoop(void) /* get the data of the last entry to the plot vector */ veclen = pl->pl_dvecs->v_length - 1; /* safeguard against vectors with 0 length (e.g. @c1[i] during ac simulation) */ - if (veclen < 1) + if (veclen < 0) return 2; curvecvalsall->vecindex = veclen; for (d = pl->pl_dvecs, i = 0; d; d = d->v_next, i++) {