[PATCH #76] Fixed access violation when iplot called without a circuit
loaded.
This commit is contained in:
parent
f4b47da693
commit
e92f20ccc0
|
|
@ -176,6 +176,13 @@ com_trce(wordlist *wl)
|
||||||
void
|
void
|
||||||
com_iplot(wordlist *wl)
|
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); */
|
/* settrace(wl, VF_PLOT); */
|
||||||
|
|
||||||
struct dbcomm *d, *td, *currentdb = NULL;
|
struct dbcomm *d, *td, *currentdb = NULL;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue