Fix PNS QA compile
This commit is contained in:
parent
57ae1b872e
commit
c5f9742153
|
@ -106,9 +106,15 @@ bool parseCommonPnsProps( PNS::ITEM* aItem, const wxString& cmd, wxStringTokeniz
|
||||||
{
|
{
|
||||||
if( cmd == "net" )
|
if( cmd == "net" )
|
||||||
{
|
{
|
||||||
aItem->SetNet( wxAtoi( aTokens.GetNextToken() ) );
|
if( aItem->Parent() && aItem->Parent()->GetBoard() )
|
||||||
|
{
|
||||||
|
aItem->Parent()->GetBoard()->FindNet( aTokens.GetNextToken() );
|
||||||
return true;
|
return true;
|
||||||
} else if ( cmd == "layers" )
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if( cmd == "layers" )
|
||||||
{
|
{
|
||||||
int start = wxAtoi( aTokens.GetNextToken() );
|
int start = wxAtoi( aTokens.GetNextToken() );
|
||||||
int end = wxAtoi( aTokens.GetNextToken() );
|
int end = wxAtoi( aTokens.GetNextToken() );
|
||||||
|
@ -116,7 +122,6 @@ bool parseCommonPnsProps( PNS::ITEM* aItem, const wxString& cmd, wxStringTokeniz
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static PNS::SEGMENT* parsePnsSegmentFromString( PNS::SEGMENT* aSeg, wxStringTokenizer& aTokens )
|
static PNS::SEGMENT* parsePnsSegmentFromString( PNS::SEGMENT* aSeg, wxStringTokenizer& aTokens )
|
||||||
|
|
Loading…
Reference in New Issue