From 1b5a6f8698f3ec80f1b365a1b3fc9021de98b490 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 4 May 2020 18:14:26 +0100 Subject: [PATCH] Fix crash bug when using Pad Properties in board editor. --- pcbnew/dialogs/dialog_pad_properties.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcbnew/dialogs/dialog_pad_properties.cpp b/pcbnew/dialogs/dialog_pad_properties.cpp index e447a97d2e..4522d89060 100644 --- a/pcbnew/dialogs/dialog_pad_properties.cpp +++ b/pcbnew/dialogs/dialog_pad_properties.cpp @@ -102,7 +102,9 @@ void PCB_BASE_FRAME::InstallPadOptionsFrame( D_PAD* aPad ) if( dlg.ShowQuasiModal() == wxID_OK ) // QuasiModal required for NET_SELECTOR { FOOTPRINT_EDITOR_TOOLS* fpTools = m_toolManager->GetTool(); - fpTools->SetLastPadName( aPad->GetName() ); + + if( fpTools ) + fpTools->SetLastPadName( aPad->GetName() ); } }