Fix typo causing no netnames in SPECCTRA export

Fixes https://gitlab.com/kicad/code/kicad/-/issues/7298
This commit is contained in:
Jon Evans 2021-01-26 22:04:45 -05:00
parent 1e030655cd
commit bb79eb0e45
1 changed files with 1 additions and 1 deletions

View File

@ -1332,7 +1332,7 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard )
for( NETINFO_LIST::iterator i = netInfo.begin(); i != netInfo.end(); ++i ) for( NETINFO_LIST::iterator i = netInfo.begin(); i != netInfo.end(); ++i )
{ {
if( i->GetNetCode() > 0 ) if( i->GetNetCode() > 0 )
m_nets[ i->GetNetCode() ] = new NET( m_pcb->network ); m_nets[i->GetNetCode()]->net_id = TO_UTF8( i->GetNetname() );
} }
items.Collect( aBoard, scanMODULEs ); items.Collect( aBoard, scanMODULEs );