Fix crash bug when using Pad Properties in board editor.
This commit is contained in:
parent
b7cccf6844
commit
1b5a6f8698
|
@ -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() );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue