diff --git a/eeschema/sim/simulator_frame_ui.cpp b/eeschema/sim/simulator_frame_ui.cpp index 9dcce0c5d4..5264be848f 100644 --- a/eeschema/sim/simulator_frame_ui.cpp +++ b/eeschema/sim/simulator_frame_ui.cpp @@ -1690,6 +1690,12 @@ void SIMULATOR_FRAME_UI::updateTrace( const wxString& aVectorName, int aTraceTyp SIM_PLOT_TAB* aPlotTab, std::vector* aDataX, bool aClearData ) { + if( !m_simulatorFrame->SimFinished() ) + { + aPlotTab->GetOrAddTrace( aVectorName, aTraceType ); + return; + } + SIM_TYPE simType = SPICE_CIRCUIT_MODEL::CommandToSimType( aPlotTab->GetSimCommand() ); aTraceType &= aTraceType & SPT_Y_AXIS_MASK; @@ -1715,7 +1721,7 @@ void SIMULATOR_FRAME_UI::updateTrace( const wxString& aVectorName, int aTraceTyp aDataX = &data_x; // First, handle the x axis - if( aDataX->empty() && !aClearData ) + if( aDataX->empty() && !aClearData && m_simulatorFrame->SimFinished() ) { wxString xAxisName( simulator()->GetXAxis( simType ) );