diff --git a/eeschema/sim/simulator_frame_ui.cpp b/eeschema/sim/simulator_frame_ui.cpp index 29243364f9..c2023d0d1a 100644 --- a/eeschema/sim/simulator_frame_ui.cpp +++ b/eeschema/sim/simulator_frame_ui.cpp @@ -2586,9 +2586,6 @@ void SIMULATOR_FRAME_UI::onPlotCursorUpdate( wxCommandEvent& aEvent ) void SIMULATOR_FRAME_UI::OnSimUpdate() { - if( SIM_TAB* simTab = GetCurrentSimTab() ) - simTab->SetSpicePlotName( simulator()->CurrentPlotName() ); - if( SIM_PLOT_TAB* plotTab = dynamic_cast( GetCurrentSimTab() ) ) plotTab->ResetScales( true ); @@ -2654,6 +2651,8 @@ void SIMULATOR_FRAME_UI::OnSimRefresh( bool aFinal ) // If there are any signals plotted, update them if( SIM_TAB::IsPlottable( simType ) ) { + simTab->SetSpicePlotName( simulator()->CurrentPlotName() ); + if( simType == ST_NOISE && aFinal ) { m_simConsole->AppendText( _( "\n\nSimulation results:\n\n" ) );