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.

This commit is contained in:
Brian Taylor 2023-08-18 16:13:42 -07:00
parent b0d29e7dca
commit fe2b30bdd3
1 changed files with 2 additions and 0 deletions

View File

@ -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] :