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:
charras 2010-02-18 11:01:59 +00:00
parent cf51e61a71
commit 71c327b266
1 changed files with 1 additions and 1 deletions

View File

@ -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: