Browse Source

SCH_SYMBOL::UpdatePins() re-add pin filtering by conversion:

It was removed by accident in commit c72091d7e.
without the filtering pins, in symbols with conversion, pins are added
twice in Pin list and create errors in ERC
7.0
jean-pierre charras 3 years ago
parent
commit
0e95f06c7b
  1. 6
      eeschema/sch_symbol.cpp

6
eeschema/sch_symbol.cpp

@ -358,8 +358,10 @@ void SCH_SYMBOL::UpdatePins()
{
wxASSERT( libPin->Type() == LIB_PIN_T );
// NW: Don't filter by conversion or unit: this data-structure is used for all instances,
// some if which might have different conversions and/or units.
// NW: Don't filter by unit: this data-structure is used for all instances,
// some if which might have different units.
if( libPin->GetConvert() && m_convert && m_convert != libPin->GetConvert() )
continue;
m_pins.push_back( std::make_unique<SCH_PIN>( libPin, this ) );

Loading…
Cancel
Save