Fix debug assertion when CvPcb footprint list is empty.

This commit is contained in:
John Beard 2014-12-07 12:19:52 -05:00 committed by Wayne Stambaugh
parent 33f39fc282
commit 58f2d2e872
1 changed files with 3 additions and 0 deletions

View File

@ -275,6 +275,9 @@ bool FOOTPRINT_LIST::ReadFootprintFiles( FP_LIB_TABLE* aTable, const wxString* a
FOOTPRINT_INFO* FOOTPRINT_LIST::GetModuleInfo( const wxString& aFootprintName )
{
if( aFootprintName.IsEmpty() )
return NULL;
BOOST_FOREACH( FOOTPRINT_INFO& fp, m_list )
{
FPID fpid;