Commit d00fae58 authored by jean-pierre charras's avatar jean-pierre charras

Footprint Editor: fix a crash when the dialog to set pad properties is called...

Footprint Editor: fix a crash when the dialog to set pad properties is called from the main toolbar (i.e. to define the default setting for new pads, and not to edit an existing pad)
parent 52701120
...@@ -149,10 +149,10 @@ DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES( PCB_BASE_FRAME* aParent, D_PAD* aP ...@@ -149,10 +149,10 @@ DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES( PCB_BASE_FRAME* aParent, D_PAD* aP
{ {
m_canUpdate = false; m_canUpdate = false;
m_parent = aParent; m_parent = aParent;
m_currentPad = aPad; m_currentPad = aPad; // aPad can be NULL, if the dialog is calleg
// from the modoule editor to set default pad characteristics
m_board = m_parent->GetBoard(); m_board = m_parent->GetBoard();
m_dummyPad = new D_PAD( aPad->GetParent() ); m_dummyPad = new D_PAD( (MODULE*) NULL );
m_padMaster.SetParent( aPad->GetParent() );
if( aPad ) if( aPad )
m_dummyPad->Copy( aPad ); m_dummyPad->Copy( aPad );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment