Fix issue where some power symbols would show up in netlist
This commit is contained in:
parent
83c7e7fc65
commit
c8c0b89eef
|
@ -524,8 +524,11 @@ XNODE* NETLIST_EXPORTER_GENERIC::makeListOfNets()
|
||||||
{
|
{
|
||||||
auto pc = static_cast<SCH_PIN_CONNECTION*>( item );
|
auto pc = static_cast<SCH_PIN_CONNECTION*>( item );
|
||||||
|
|
||||||
// Skip power symbols
|
auto refText = pc->m_comp->GetRef( &sheet );
|
||||||
if( (LIB_PART*)( pc->m_pin->GetParent() )->IsPower() )
|
auto pinText = pc->m_pin->GetNumber();
|
||||||
|
|
||||||
|
// Skip power symbols and virtual components
|
||||||
|
if( refText[0] == wxChar( '#' ) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if( !added )
|
if( !added )
|
||||||
|
@ -538,9 +541,6 @@ XNODE* NETLIST_EXPORTER_GENERIC::makeListOfNets()
|
||||||
added = true;
|
added = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto refText = pc->m_comp->GetRef( &sheet );
|
|
||||||
auto pinText = pc->m_pin->GetNumber();
|
|
||||||
|
|
||||||
xnet->AddChild( xnode = node( "node" ) );
|
xnet->AddChild( xnode = node( "node" ) );
|
||||||
xnode->AddAttribute( "ref", refText );
|
xnode->AddAttribute( "ref", refText );
|
||||||
xnode->AddAttribute( "pin", pinText );
|
xnode->AddAttribute( "pin", pinText );
|
||||||
|
|
Loading…
Reference in New Issue