From bc0fc0bb3a48b99720d59fa9f88bbf2f32cfa255 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Thu, 7 May 2020 16:28:59 -0400 Subject: [PATCH] Eeschema: fix broken net list items in schematic symbol object. Fixes https://gitlab.com/kicad/code/kicad/issues/4358 --- eeschema/sch_component.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/eeschema/sch_component.cpp b/eeschema/sch_component.cpp index 021ab1f5e1..ce23c7e84a 100644 --- a/eeschema/sch_component.cpp +++ b/eeschema/sch_component.cpp @@ -1503,10 +1503,6 @@ void SCH_COMPONENT::GetNetListItem( NETLIST_OBJECT_LIST& aNetListItems, if( !m_part ) 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 ) ) { wxASSERT( pin->Type() == LIB_PIN_T );