Don't be annoying about refusing to create traces when there's no data.

This commit is contained in:
Jeff Young 2023-01-13 13:00:30 +00:00
parent d8867b7a66
commit 4391fc7a7a
1 changed files with 0 additions and 6 deletions

View File

@ -755,9 +755,6 @@ bool SIM_PLOT_FRAME::updatePlot( const wxString& aName, SIM_PLOT_TYPE aType,
std::vector<double> data_x = m_simulator->GetMagPlot( (const char*) xAxisName.c_str() );
unsigned int size = data_x.size();
if( data_x.empty() )
return false;
std::vector<double> data_y;
// Now, Y axis data
@ -787,9 +784,6 @@ bool SIM_PLOT_FRAME::updatePlot( const wxString& aName, SIM_PLOT_TYPE aType,
return false;
}
if( data_y.size() != size )
return false;
// If we did a two-source DC analysis, we need to split the resulting vector and add traces
// for each input step
SPICE_DC_PARAMS source1, source2;