Pcbnew: fix a crash when trying to edit a pad in the board editor
This commit is contained in:
parent
182973c0ee
commit
601633347c
|
@ -100,11 +100,14 @@ void PCB_BASE_FRAME::InstallPadOptionsFrame( D_PAD* aPad )
|
|||
DIALOG_PAD_PROPERTIES dlg( this, aPad );
|
||||
|
||||
if( dlg.ShowQuasiModal() == wxID_OK ) // QuasiModal required for NET_SELECTOR
|
||||
{
|
||||
if( aPad && m_Ident == FRAME_PCB_MODULE_EDITOR )
|
||||
{
|
||||
MODULE_EDITOR_TOOLS* fpTools = m_toolManager->GetTool<MODULE_EDITOR_TOOLS>();
|
||||
fpTools->SetLastPadName( aPad->GetName() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES( PCB_BASE_FRAME* aParent, D_PAD* aPad ) :
|
||||
|
|
Loading…
Reference in New Issue