CMP_TREE_MODEL: add the correct number of units
Fixes: lp:1671174 * https://bugs.launchpad.net/kicad/+bug/1671174
This commit is contained in:
parent
3bddc14dc6
commit
28848373ce
|
@ -139,7 +139,7 @@ CMP_TREE_NODE_ALIAS::CMP_TREE_NODE_ALIAS( CMP_TREE_NODE* aParent, LIB_ALIAS* aAl
|
|||
|
||||
if( aAlias->GetPart()->IsMulti() )
|
||||
{
|
||||
for( int u = 1; u < aAlias->GetPart()->GetUnitCount(); ++u )
|
||||
for( int u = 1; u <= aAlias->GetPart()->GetUnitCount(); ++u )
|
||||
{
|
||||
AddUnit( u );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue