[PATCH #76] Fixed access violation when iplot called without a circuit

loaded.
This commit is contained in:
Jim Monte 2019-06-15 00:39:56 +02:00 committed by Holger Vogt
parent 978429018b
commit 3def275be4
1 changed files with 7 additions and 0 deletions

View File

@ -176,6 +176,13 @@ com_trce(wordlist *wl)
void
com_iplot(wordlist *wl)
{
/* Check for an active circuit */
if (ft_curckt == (struct circ *) NULL) {
fprintf(cp_err, "No circuit loaded. "
"Incremental plotting is not possible.\n");
return;
}
/* settrace(wl, VF_PLOT); */
struct dbcomm *d, *td, *currentdb = NULL;