router: VIA SetDrill() and SetPosition() must update the hole shape too.

This commit is contained in:
Tomasz Wlostowski 2021-04-19 00:43:15 +02:00
parent 325ab738b5
commit 57de83897a
1 changed files with 2 additions and 1 deletions

View File

@ -99,6 +99,7 @@ public:
{ {
m_pos = aPos; m_pos = aPos;
m_shape.SetCenter( aPos ); m_shape.SetCenter( aPos );
m_hole.SetCenter( aPos );
} }
VIATYPE ViaType() const { return m_viaType; } VIATYPE ViaType() const { return m_viaType; }
@ -113,7 +114,7 @@ public:
} }
int Drill() const { return m_drill; } 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; } bool IsFree() const { return m_isFree; }
void SetIsFree( bool aIsFree ) { m_isFree = aIsFree; } void SetIsFree( bool aIsFree ) { m_isFree = aIsFree; }