Commit c7d6dad7 authored by Miguel Angel Ajo's avatar Miguel Angel Ajo

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

parent ccb74b99
...@@ -112,7 +112,14 @@ void FOOTPRINT_WIZARD_FRAME::ReloadFootprint() ...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment