Pcbnew: Fix crash after opening footprint wizard
This commit is contained in:
parent
a3ea46d0e4
commit
aaabdeaed7
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue