From 57de83897a1cbe9225ab63cb2da126c63809d610 Mon Sep 17 00:00:00 2001 From: Tomasz Wlostowski Date: Mon, 19 Apr 2021 00:43:15 +0200 Subject: [PATCH] router: VIA SetDrill() and SetPosition() must update the hole shape too. --- pcbnew/router/pns_via.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }