Remove a hard-coded parameter

Fixes https://gitlab.com/kicad/code/kicad/issues/5373
This commit is contained in:
Seth Hillbrand 2020-10-06 14:25:37 -07:00
parent 8c367cce8d
commit 504f57811a
1 changed files with 3 additions and 3 deletions

View File

@ -22,9 +22,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <eda_draw_frame.h>
#include <default_values.h>
#include <dialog_lib_new_component.h>
#include <eda_draw_frame.h>
#include <sch_validators.h>
#include <template_fieldnames.h>
@ -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();