From c7d6dad7e0eeeedfd4ff15922d59b7b8cb37008e Mon Sep 17 00:00:00 2001 From: Miguel Angel Ajo Date: Mon, 6 Aug 2012 22:41:41 +0200 Subject: [PATCH] pcbnew: fix bug 1033510 that crashes pcbnew when no footprint wizard is selected --- pcbnew/footprint_wizard.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pcbnew/footprint_wizard.cpp b/pcbnew/footprint_wizard.cpp index 1217f56395..76d590529d 100644 --- a/pcbnew/footprint_wizard.cpp +++ b/pcbnew/footprint_wizard.cpp @@ -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()