Fix crash bug when using Pad Properties in board editor.

This commit is contained in:
Jeff Young 2020-05-04 18:14:26 +01:00
parent b7cccf6844
commit 1b5a6f8698
1 changed files with 3 additions and 1 deletions

View File

@ -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<FOOTPRINT_EDITOR_TOOLS>();
fpTools->SetLastPadName( aPad->GetName() );
if( fpTools )
fpTools->SetLastPadName( aPad->GetName() );
}
}