Commit bcf79484 authored by Wayne Stambaugh's avatar Wayne Stambaugh
Browse files

CvPcb: fix no footprints shown in list when no legacy libraries are defined in project file.

parent f0412874
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -748,11 +748,11 @@ void CVPCB_MAINFRAME::DisplayStatus()

bool CVPCB_MAINFRAME::LoadFootprintFiles()
{
    // Check if there are footprint libraries in project file.
    if( m_ModuleLibNames.GetCount() == 0 )
    // Check if there are footprint libraries in the footprint library table.
    if( m_footprintLibTable == NULL || m_footprintLibTable->GetCount() == 0 )
    {
        wxMessageBox( _( "No PCB footprint libraries are listed in the current project file." ),
                      _( "Project File Error" ), wxOK | wxICON_ERROR );
        wxMessageBox( _( "No PCB footprint libraries are listed in the current footprint "
                         "library table." ), _( "Configuration Error" ), wxOK | wxICON_ERROR );
        return false;
    }