From df99ee39d9c2886edbb38c40940ed93332206930 Mon Sep 17 00:00:00 2001 From: david-beinder Date: Sun, 7 Mar 2021 17:25:47 +0100 Subject: [PATCH] PNS: new through vias should span all copper layers Fixes https://gitlab.com/kicad/code/kicad/issues/7576 --- pcbnew/router/pns_line_placer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/router/pns_line_placer.cpp b/pcbnew/router/pns_line_placer.cpp index db3b36ac51..c856d07c71 100644 --- a/pcbnew/router/pns_line_placer.cpp +++ b/pcbnew/router/pns_line_placer.cpp @@ -70,7 +70,8 @@ void LINE_PLACER::setWorld( NODE* aWorld ) const VIA LINE_PLACER::makeVia( const VECTOR2I& aP ) { - const LAYER_RANGE layers( m_sizes.GetLayerTop(), m_sizes.GetLayerBottom() ); + const LAYER_RANGE layers( m_sizes.ViaType() == VIATYPE::THROUGH ? F_Cu : m_sizes.GetLayerTop(), + m_sizes.ViaType() == VIATYPE::THROUGH ? B_Cu : m_sizes.GetLayerBottom() ); return VIA( aP, layers, m_sizes.ViaDiameter(), m_sizes.ViaDrill(), -1, m_sizes.ViaType() ); }