PNS: new through vias should span all copper layers

Fixes https://gitlab.com/kicad/code/kicad/issues/7576
This commit is contained in:
david-beinder 2021-03-07 17:25:47 +01:00 committed by Jeff Young
parent 47145d349b
commit df99ee39d9
1 changed files with 2 additions and 1 deletions

View File

@ -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() );
}