Remove a hard-coded parameter
Fixes https://gitlab.com/kicad/code/kicad/issues/5373
This commit is contained in:
parent
8c367cce8d
commit
504f57811a
|
@ -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…
Reference in New Issue