From 6b7cde537dd8e309d3981b95b18b668692b1781d Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Mon, 11 May 2026 15:10:21 +0200 Subject: [PATCH] Reset plot list to const plot. --- src/frontend/mw_coms.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend/mw_coms.c b/src/frontend/mw_coms.c index aebf6cf18..c7eb46075 100644 --- a/src/frontend/mw_coms.c +++ b/src/frontend/mw_coms.c @@ -14,6 +14,8 @@ #include "runcoms.h" #include "spiceif.h" +#include "plotting/plotting.h" + /* Clears ckt and removes current circ. form database */ void @@ -82,7 +84,7 @@ com_removecirc(wordlist *wl) /* If the plot is the first one and there are no other plots */ if (!plot_list->pl_next && strcmp(plot_list->pl_title, namecircuit) == 0) - plot_list = NULL; + plot_list = &constantplot; else if (plot_list && plot_list->pl_next) { p = plot_list;