Pcbnew: Fix crash after opening footprint wizard

This commit is contained in:
jean-pierre charras 2012-07-16 15:34:08 +02:00
parent a3ea46d0e4
commit aaabdeaed7
1 changed files with 20 additions and 17 deletions

View File

@ -87,6 +87,9 @@ void FOOTPRINT_WIZARD_FRAME::DisplayWizardInfos()
void FOOTPRINT_WIZARD_FRAME::ReloadFootprint() void FOOTPRINT_WIZARD_FRAME::ReloadFootprint()
{ {
if( m_FootprintWizard == NULL )
return;
SetCurItem( NULL ); SetCurItem( NULL );
// Delete the current footprint // Delete the current footprint
GetBoard()->m_Modules.DeleteAll(); GetBoard()->m_Modules.DeleteAll();