From 9d839eb86ea4db41dc9cf2be2b9576eb07c99853 Mon Sep 17 00:00:00 2001 From: charras Date: Sun, 13 Dec 2009 11:53:19 +0000 Subject: [PATCH] Pcbnew: make global edit pads function compatible with new pads changes and make it undoable. --- pcbnew/globaleditpad.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcbnew/globaleditpad.cpp b/pcbnew/globaleditpad.cpp index 0d2b0dfbba..9e103e537e 100644 --- a/pcbnew/globaleditpad.cpp +++ b/pcbnew/globaleditpad.cpp @@ -57,12 +57,14 @@ DIALOG_GLOBAL_PADS_EDITION::DIALOG_GLOBAL_PADS_EDITION( m_Pad_Layer_Filter_CB->SetValue( m_Pad_Layer_Filter ); m_Pad_Orient_Filter_CB->SetValue( m_Pad_Orient_Filter ); + SetFocus(); + GetSizer()->Fit( this ); Centre(); } -/*Class DIALOG_GLOBAL_PADS_EDITION static variables */ +/* Class DIALOG_GLOBAL_PADS_EDITION static variables */ bool DIALOG_GLOBAL_PADS_EDITION::m_Pad_Shape_Filter = true; bool DIALOG_GLOBAL_PADS_EDITION::m_Pad_Layer_Filter = true; bool DIALOG_GLOBAL_PADS_EDITION::m_Pad_Orient_Filter = true;