Symbol checker: fix incorrect test for duplicate pins.

From master branch
https://gitlab.com/kicad/code/kicad/issues/11660
This commit is contained in:
jean-pierre charras 2022-05-23 11:33:43 +02:00
parent 5d4e2aa595
commit 7168441a1b
1 changed files with 9 additions and 1 deletions

View File

@ -245,9 +245,17 @@ int EE_INSPECTION_TOOL::CheckSymbol( const TOOL_EVENT& aEvent )
LIB_PIN* pin = pinList[ii - 1]; LIB_PIN* pin = pinList[ii - 1];
LIB_PIN* next = pinList[ii]; LIB_PIN* next = pinList[ii];
if( pin->GetNumber() != next->GetNumber() || pin->GetConvert() != next->GetConvert() ) if( pin->GetNumber() != next->GetNumber() )
continue; continue;
// Pins are not duplicated only if they are in different convert bodies
// (but GetConvert() == 0 means commun to all convert bodies)
if( pin->GetConvert() != 0 && next->GetConvert() != 0 )
{
if( pin->GetConvert() != next->GetConvert() )
continue;
}
wxString pinName; wxString pinName;
wxString nextName; wxString nextName;