Commit 71c327b2 authored by charras's avatar charras

pcbnew: fixed crash when opening the pad edit dialog from Preference (without...

pcbnew: fixed crash when opening the pad edit dialog from Preference (without current pad to edit) and closing the dialog.
parent cf51e61a
...@@ -480,7 +480,7 @@ void DIALOG_PAD_PROPERTIES::PadPropertiesAccept( wxCommandEvent& event ) ...@@ -480,7 +480,7 @@ void DIALOG_PAD_PROPERTIES::PadPropertiesAccept( wxCommandEvent& event )
case PAD_CIRCLE: case PAD_CIRCLE:
g_Pad_Master.m_Offset = wxSize( 0, 0 ); g_Pad_Master.m_Offset = wxSize( 0, 0 );
g_Pad_Master.m_DeltaSize = 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; break;
case PAD_RECT: case PAD_RECT:
......
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