From 2018d48946b2ff2eb91a2544a463f67bb967b6b8 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 16 Jun 2017 23:17:34 +0200 Subject: [PATCH] Fixed removal order in SIM_PLOT_PANEL::DeleteTrace() --- eeschema/sim/sim_plot_panel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/sim/sim_plot_panel.cpp b/eeschema/sim/sim_plot_panel.cpp index 964358f03d..f66d4e71d5 100644 --- a/eeschema/sim/sim_plot_panel.cpp +++ b/eeschema/sim/sim_plot_panel.cpp @@ -546,8 +546,8 @@ bool SIM_PLOT_PANEL::DeleteTrace( const wxString& aName ) if( it != m_traces.end() ) { - m_traces.erase( it ); TRACE* trace = it->second; + m_traces.erase( it ); if( CURSOR* cursor = trace->GetCursor() ) DelLayer( cursor, true );