diff --git a/pcbnew/router/pns_solid.cpp b/pcbnew/router/pns_solid.cpp index 306d36c948..bb5252764a 100644 --- a/pcbnew/router/pns_solid.cpp +++ b/pcbnew/router/pns_solid.cpp @@ -79,4 +79,15 @@ ITEM* SOLID::Clone() const return solid; } +void SOLID::SetPos( const VECTOR2I& aCenter ) +{ + auto delta = aCenter - m_pos; + + if( m_shape ) + m_shape->Move( delta ); + + m_pos = aCenter; +} + + } diff --git a/pcbnew/router/pns_solid.h b/pcbnew/router/pns_solid.h index 27600bed92..77d86d21d0 100644 --- a/pcbnew/router/pns_solid.h +++ b/pcbnew/router/pns_solid.h @@ -78,11 +78,8 @@ public: return m_pos; } - void SetPos( const VECTOR2I& aCenter ) - { - m_pos = aCenter; - } - + void SetPos( const VECTOR2I& aCenter ); + int GetPadToDie() const { return m_padToDie;