Eeschema: fix broken net list items in schematic symbol object.
Fixes https://gitlab.com/kicad/code/kicad/issues/4358
This commit is contained in:
parent
61e981be17
commit
bc0fc0bb3a
|
@ -1503,10 +1503,6 @@ void SCH_COMPONENT::GetNetListItem( NETLIST_OBJECT_LIST& aNetListItems,
|
||||||
if( !m_part )
|
if( !m_part )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// This should not happen but just in case the pin map size doesn't match the number of
|
|
||||||
// pins in the symbol, update the pin map.
|
|
||||||
wxCHECK2( m_part->GetPinCount() == m_pins.size(), UpdatePins() );
|
|
||||||
|
|
||||||
for( LIB_PIN* pin = m_part->GetNextPin(); pin; pin = m_part->GetNextPin( pin ) )
|
for( LIB_PIN* pin = m_part->GetNextPin(); pin; pin = m_part->GetNextPin( pin ) )
|
||||||
{
|
{
|
||||||
wxASSERT( pin->Type() == LIB_PIN_T );
|
wxASSERT( pin->Type() == LIB_PIN_T );
|
||||||
|
|
Loading…
Reference in New Issue