From 157ceedc122f0aa0935debe445579aad4a8db796 Mon Sep 17 00:00:00 2001 From: Slawomir Siudym Date: Tue, 29 Dec 2020 13:28:37 +0000 Subject: [PATCH] Fix offset of repeated pin in Symbol Editor --- eeschema/tools/symbol_editor_pin_tool.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eeschema/tools/symbol_editor_pin_tool.cpp b/eeschema/tools/symbol_editor_pin_tool.cpp index 23282276c2..805f8dd276 100644 --- a/eeschema/tools/symbol_editor_pin_tool.cpp +++ b/eeschema/tools/symbol_editor_pin_tool.cpp @@ -410,10 +410,10 @@ LIB_PIN* SYMBOL_EDITOR_PIN_TOOL::RepeatPin( const LIB_PIN* aSourcePin ) switch( pin->GetOrientation() ) { - case PIN_UP: step.x = settings->m_Repeat.pin_step; break; - case PIN_DOWN: step.x = settings->m_Repeat.pin_step; break; - case PIN_LEFT: step.y = -settings->m_Repeat.pin_step; break; - case PIN_RIGHT: step.y = -settings->m_Repeat.pin_step; break; + case PIN_UP: step.x = Mils2iu(settings->m_Repeat.pin_step); break; + case PIN_DOWN: step.x = Mils2iu(settings->m_Repeat.pin_step); break; + case PIN_LEFT: step.y = Mils2iu(-settings->m_Repeat.pin_step); break; + case PIN_RIGHT: step.y = Mils2iu(-settings->m_Repeat.pin_step); break; } pin->Offset( step );