pcbnew: fix bug 1033510 that crashes pcbnew when no footprint wizard is selected
This commit is contained in:
parent
ccb74b99d3
commit
c7d6dad7e0
|
@ -112,7 +112,14 @@ void FOOTPRINT_WIZARD_FRAME::ReloadFootprint()
|
|||
|
||||
MODULE* FOOTPRINT_WIZARD_FRAME::GetBuiltFootprint()
|
||||
{
|
||||
return m_FootprintWizard->GetModule();
|
||||
if ( m_FootprintWizard )
|
||||
{
|
||||
return m_FootprintWizard->GetModule();
|
||||
}
|
||||
else
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void FOOTPRINT_WIZARD_FRAME::SelectFootprintWizard()
|
||||
|
|
Loading…
Reference in New Issue