Browse Source

Fix bugs in SyncPinMode.

In particular an errant else, and calling ChangeLength()
after SetPosition().

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18566
pcb_db
Jeff Young 10 months ago
parent
commit
e85f1bea0c
  1. 8
      eeschema/tools/symbol_editor_pin_tool.cpp

8
eeschema/tools/symbol_editor_pin_tool.cpp

@ -167,10 +167,14 @@ bool SYMBOL_EDITOR_PIN_TOOL::EditPinProperties( SCH_PIN* aPin, bool aFocusPinNum
if( !aPin->GetUnit() || other->GetUnit() == aPin->GetUnit() )
parentSymbol->RemoveDrawItem( other );
}
else if( other->GetBodyStyle() == aPin->GetBodyStyle() )
if( other->GetBodyStyle() == aPin->GetBodyStyle() )
{
other->SetPosition( aPin->GetPosition() );
other->ChangeLength( aPin->GetLength() );
// Must be done after ChangeLenght(), which can alter the position
other->SetPosition( aPin->GetPosition() );
other->SetShape( aPin->GetShape() );
}

Loading…
Cancel
Save