From 504f57811a05550dd29f4d0ee8c9240efb87bb6a Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 6 Oct 2020 14:25:37 -0700 Subject: [PATCH] Remove a hard-coded parameter Fixes https://gitlab.com/kicad/code/kicad/issues/5373 --- eeschema/dialogs/dialog_lib_new_component.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eeschema/dialogs/dialog_lib_new_component.cpp b/eeschema/dialogs/dialog_lib_new_component.cpp index d9a26d2469..27f178610b 100644 --- a/eeschema/dialogs/dialog_lib_new_component.cpp +++ b/eeschema/dialogs/dialog_lib_new_component.cpp @@ -22,9 +22,9 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ -#include - +#include #include +#include #include #include @@ -40,7 +40,7 @@ DIALOG_LIB_NEW_COMPONENT::DIALOG_LIB_NEW_COMPONENT( EDA_DRAW_FRAME* aParent, m_textName->SetValidator( SCH_FIELD_VALIDATOR( true, VALUE ) ); m_textReference->SetValidator( SCH_FIELD_VALIDATOR( true, REFERENCE ) ); - m_pinTextPosition.SetValue( Mils2iu( 40 ) ); + m_pinTextPosition.SetValue( Mils2iu( DEFAULT_PIN_NAME_OFFSET ) ); // initial focus should be on first editable field. m_textName->SetFocus();