Fix issue where some power symbols would show up in netlist

This commit is contained in:
Jon Evans 2019-03-17 14:30:19 -04:00 committed by Wayne Stambaugh
parent 83c7e7fc65
commit c8c0b89eef
1 changed files with 5 additions and 5 deletions

View File

@ -524,8 +524,11 @@ XNODE* NETLIST_EXPORTER_GENERIC::makeListOfNets()
{
auto pc = static_cast<SCH_PIN_CONNECTION*>( item );
// Skip power symbols
if( (LIB_PART*)( pc->m_pin->GetParent() )->IsPower() )
auto refText = pc->m_comp->GetRef( &sheet );
auto pinText = pc->m_pin->GetNumber();
// Skip power symbols and virtual components
if( refText[0] == wxChar( '#' ) )
continue;
if( !added )
@ -538,9 +541,6 @@ XNODE* NETLIST_EXPORTER_GENERIC::makeListOfNets()
added = true;
}
auto refText = pc->m_comp->GetRef( &sheet );
auto pinText = pc->m_pin->GetNumber();
xnet->AddChild( xnode = node( "node" ) );
xnode->AddAttribute( "ref", refText );
xnode->AddAttribute( "pin", pinText );