pcbnew: fix bug 1033510 that crashes pcbnew when no footprint wizard is selected

This commit is contained in:
Miguel Angel Ajo 2012-08-06 22:41:41 +02:00
parent ccb74b99d3
commit c7d6dad7e0
1 changed files with 8 additions and 1 deletions

View File

@ -112,7 +112,14 @@ void FOOTPRINT_WIZARD_FRAME::ReloadFootprint()
MODULE* FOOTPRINT_WIZARD_FRAME::GetBuiltFootprint() MODULE* FOOTPRINT_WIZARD_FRAME::GetBuiltFootprint()
{ {
return m_FootprintWizard->GetModule(); if ( m_FootprintWizard )
{
return m_FootprintWizard->GetModule();
}
else
{
return NULL;
}
} }
void FOOTPRINT_WIZARD_FRAME::SelectFootprintWizard() void FOOTPRINT_WIZARD_FRAME::SelectFootprintWizard()