From fe2b30bdd3d9c6968fe1e713be0106487b1972b9 Mon Sep 17 00:00:00 2001 From: Brian Taylor Date: Fri, 18 Aug 2023 16:13:42 -0700 Subject: [PATCH] If a ".plot tran list_of_vectors" command contains an event node name in the list of vectors, then ft_agraf crashes when trying to create the output fields for an lpr style plot. Now event node vectors are ignored. Most users will use a .control section when plotting analog and digital vectors in non-lpr style. --- src/frontend/plotting/agraf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/plotting/agraf.c b/src/frontend/plotting/agraf.c index de750a973..b02c2f596 100644 --- a/src/frontend/plotting/agraf.c +++ b/src/frontend/plotting/agraf.c @@ -230,6 +230,8 @@ ft_agraf(double *xlims, double *ylims, struct dvec *xscale, struct plot *plot, s return; } for (v = vecs; v; v = v->v_link2) { + if (v->v_flags & VF_EVENT_NODE) + continue; yy1 = (isreal(v) ? v->v_realdata[lower] : realpart(v->v_compdata[lower])); y2 = (isreal(v) ? v->v_realdata[upper] :