Fixed removal order in SIM_PLOT_PANEL::DeleteTrace()

This commit is contained in:
Maciej Suminski 2017-06-16 23:17:34 +02:00
parent dab73e172b
commit 2018d48946
1 changed files with 1 additions and 1 deletions

View File

@ -546,8 +546,8 @@ bool SIM_PLOT_PANEL::DeleteTrace( const wxString& aName )
if( it != m_traces.end() ) if( it != m_traces.end() )
{ {
m_traces.erase( it );
TRACE* trace = it->second; TRACE* trace = it->second;
m_traces.erase( it );
if( CURSOR* cursor = trace->GetCursor() ) if( CURSOR* cursor = trace->GetCursor() )
DelLayer( cursor, true ); DelLayer( cursor, true );