Eeschema: Filter out empty libraries

Fixes: lp:1736930
* https://bugs.launchpad.net/kicad/+bug/1736930
This commit is contained in:
Seth Hillbrand 2017-12-08 05:53:53 -08:00 committed by Wayne Stambaugh
parent 394749f1d6
commit cb422e29df
1 changed files with 7 additions and 4 deletions

View File

@ -60,10 +60,12 @@ void CMP_TREE_MODEL_ADAPTER::AddLibrary( wxString const& aLibNickname )
return;
}
if( aliases.size() > 0 )
{
AddAliasList( aLibNickname, aliases );
m_tree.AssignIntrinsicRanks();
}
}
void CMP_TREE_MODEL_ADAPTER::AddAliasList(
@ -91,5 +93,6 @@ void CMP_TREE_MODEL_ADAPTER::AddAliasList(
alias_list.push_back( a );
}
if( alias_list.size() > 0 )
AddAliasList( aNodeName, alias_list );
}