diff --git a/pcbnew/router/pns_via.h b/pcbnew/router/pns_via.h index 5d24b2b266..116dfb492c 100644 --- a/pcbnew/router/pns_via.h +++ b/pcbnew/router/pns_via.h @@ -99,6 +99,7 @@ public: { m_pos = aPos; m_shape.SetCenter( aPos ); + m_hole.SetCenter( aPos ); } VIATYPE ViaType() const { return m_viaType; } @@ -113,7 +114,7 @@ public: } int Drill() const { return m_drill; } - void SetDrill( int aDrill ) { m_drill = aDrill; } + void SetDrill( int aDrill ) { m_drill = aDrill; m_hole.SetRadius( aDrill / 2 ); } bool IsFree() const { return m_isFree; } void SetIsFree( bool aIsFree ) { m_isFree = aIsFree; }