Fix duplicated pin in case of multipart symbol creation.

Fixes lp:1509936

https://bugs.launchpad.net/kicad/+bug/1509936
This commit is contained in:
Jean-Samuel Reynaud 2017-09-05 18:25:30 +02:00 committed by Wayne Stambaugh
parent 8182369c64
commit 50c9d8f77d
1 changed files with 1 additions and 1 deletions

View File

@ -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();