Skip to content
Snippets Groups Projects
Commit eae5e9f0 authored by jean-pierre charras's avatar jean-pierre charras
Browse files

Symbol checker: fix incorrect test for duplicate pins.

Fixes #11660
#11660
parent ea29c666
No related branches found
No related tags found
Loading
Pipeline #545561736 passed
...@@ -70,9 +70,17 @@ void CheckLibSymbol( LIB_SYMBOL* aSymbol, std::vector<wxString>& aMessages, ...@@ -70,9 +70,17 @@ void CheckLibSymbol( LIB_SYMBOL* aSymbol, std::vector<wxString>& aMessages,
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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment