Fix duplicated pin in case of multipart symbol creation.
Fixes lp:1509936 https://bugs.launchpad.net/kicad/+bug/1509936
This commit is contained in:
parent
8182369c64
commit
50c9d8f77d
|
@ -511,7 +511,7 @@ void LIB_EDIT_FRAME::CreateImagePins( LIB_PIN* aPin, int aUnit, int aConvert, bo
|
|||
|
||||
for( ii = 1; ii <= aPin->GetParent()->GetUnitCount(); ii++ )
|
||||
{
|
||||
if( ii == aUnit || aPin->GetUnit() == 0 )
|
||||
if( ii == aUnit || aPin->GetUnit() != 0 )
|
||||
continue; // Pin common to all units.
|
||||
|
||||
NewPin = (LIB_PIN*) aPin->Clone();
|
||||
|
|
Loading…
Reference in New Issue