Fix debug assertion when CvPcb footprint list is empty.
This commit is contained in:
parent
33f39fc282
commit
58f2d2e872
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue