CMP_TREE_MODEL: add the correct number of units

Fixes: lp:1671174
* https://bugs.launchpad.net/kicad/+bug/1671174
This commit is contained in:
Chris Pavlina 2017-03-08 12:39:28 -05:00
parent 3bddc14dc6
commit 28848373ce
1 changed files with 1 additions and 1 deletions

View File

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