Don't be annoying about refusing to create traces when there's no data.
This commit is contained in:
parent
d8867b7a66
commit
4391fc7a7a
|
@ -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() );
|
std::vector<double> data_x = m_simulator->GetMagPlot( (const char*) xAxisName.c_str() );
|
||||||
unsigned int size = data_x.size();
|
unsigned int size = data_x.size();
|
||||||
|
|
||||||
if( data_x.empty() )
|
|
||||||
return false;
|
|
||||||
|
|
||||||
std::vector<double> data_y;
|
std::vector<double> data_y;
|
||||||
|
|
||||||
// Now, Y axis data
|
// Now, Y axis data
|
||||||
|
@ -787,9 +784,6 @@ bool SIM_PLOT_FRAME::updatePlot( const wxString& aName, SIM_PLOT_TYPE aType,
|
||||||
return false;
|
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
|
// If we did a two-source DC analysis, we need to split the resulting vector and add traces
|
||||||
// for each input step
|
// for each input step
|
||||||
SPICE_DC_PARAMS source1, source2;
|
SPICE_DC_PARAMS source1, source2;
|
||||||
|
|
Loading…
Reference in New Issue