Fix crash opening footprint editor in debug mode with no board
This commit is contained in:
parent
009641d151
commit
5e9e46c7bd
|
@ -1533,6 +1533,7 @@ void LEGACY_PLUGIN::loadPAD( MODULE* aModule )
|
|||
// read Netname
|
||||
ReadDelimitedText( buf, data, sizeof(buf) );
|
||||
|
||||
if( m_board )
|
||||
wxASSERT( m_board->FindNet( getNetCode( netcode ) )->GetNetname()
|
||||
== FROM_UTF8( StrPurge( buf ) ) );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue