Eeschema: fix broken net list items in schematic symbol object.

Fixes https://gitlab.com/kicad/code/kicad/issues/4358
This commit is contained in:
Wayne Stambaugh 2020-05-07 16:28:59 -04:00
parent 61e981be17
commit bc0fc0bb3a
1 changed files with 0 additions and 4 deletions

View File

@ -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 );