Fix offset of repeated pin in Symbol Editor

This commit is contained in:
Slawomir Siudym 2020-12-29 13:28:37 +00:00 committed by Seth Hillbrand
parent 07673d3c11
commit 157ceedc12
1 changed files with 4 additions and 4 deletions

View File

@ -410,10 +410,10 @@ LIB_PIN* SYMBOL_EDITOR_PIN_TOOL::RepeatPin( const LIB_PIN* aSourcePin )
switch( pin->GetOrientation() ) switch( pin->GetOrientation() )
{ {
case PIN_UP: step.x = settings->m_Repeat.pin_step; break; case PIN_UP: step.x = Mils2iu(settings->m_Repeat.pin_step); break;
case PIN_DOWN: step.x = settings->m_Repeat.pin_step; break; case PIN_DOWN: step.x = Mils2iu(settings->m_Repeat.pin_step); break;
case PIN_LEFT: step.y = -settings->m_Repeat.pin_step; break; case PIN_LEFT: step.y = Mils2iu(-settings->m_Repeat.pin_step); break;
case PIN_RIGHT: step.y = -settings->m_Repeat.pin_step; break; case PIN_RIGHT: step.y = Mils2iu(-settings->m_Repeat.pin_step); break;
} }
pin->Offset( step ); pin->Offset( step );