Revert pns_log_file.cpp change to compile

This commit is contained in:
Seth Hillbrand 2023-08-23 08:50:08 -07:00
parent f75950d646
commit a6073ae566
1 changed files with 16 additions and 10 deletions

View File

@ -106,9 +106,15 @@ bool parseCommonPnsProps( PNS::ITEM* aItem, const wxString& cmd, wxStringTokeniz
{
if( cmd == "net" )
{
aItem->SetNet( m_board->FindNet( aTokens.GetNextToken() ) );
if( aItem->Parent() && aItem->Parent()->GetBoard() )
{
aItem->SetNet( aItem->Parent()->GetBoard()->FindNet( aTokens.GetNextToken() ) );
return true;
} else if ( cmd == "layers" )
}
return false;
}
else if( cmd == "layers" )
{
int start = wxAtoi( aTokens.GetNextToken() );
int end = wxAtoi( aTokens.GetNextToken() );