pcbnew: fixed crash when opening the pad edit dialog from Preference (without current pad to edit) and closing the dialog.
This commit is contained in:
parent
cf51e61a71
commit
71c327b266
|
@ -480,7 +480,7 @@ void DIALOG_PAD_PROPERTIES::PadPropertiesAccept( wxCommandEvent& event )
|
|||
case PAD_CIRCLE:
|
||||
g_Pad_Master.m_Offset = wxSize( 0, 0 );
|
||||
g_Pad_Master.m_DeltaSize = wxSize( 0, 0 );
|
||||
g_Pad_Master.m_Size.y = m_CurrentPad->m_Size.x;
|
||||
g_Pad_Master.m_Size.y = g_Pad_Master.m_Size.x;
|
||||
break;
|
||||
|
||||
case PAD_RECT:
|
||||
|
|
Loading…
Reference in New Issue