Don't attempt to load unknown plot types.

This commit is contained in:
Jeff Young 2023-03-20 10:06:10 +00:00
parent 3afe02ac1f
commit 1dc9583e06
1 changed files with 2 additions and 1 deletions

View File

@ -1069,7 +1069,8 @@ bool SIM_PLOT_FRAME::loadWorkbook( const wxString& aPath )
}
#endif
addPlot( name, (SIM_PLOT_TYPE) traceType );
if( traceType != SPT_UNKNOWN )
addPlot( name, (SIM_PLOT_TYPE) traceType );
}
}