Browse Source

Remove a hard-coded parameter

Fixes https://gitlab.com/kicad/code/kicad/issues/5373
6.0.7
Seth Hillbrand 5 years ago
parent
commit
504f57811a
  1. 6
      eeschema/dialogs/dialog_lib_new_component.cpp

6
eeschema/dialogs/dialog_lib_new_component.cpp

@ -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();

Loading…
Cancel
Save