Fixed removal order in SIM_PLOT_PANEL::DeleteTrace()
This commit is contained in:
parent
dab73e172b
commit
2018d48946
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue