Pcbnew plot: do not plot via hole on layers where the via does not exist:

buried vias are not on all copper layers. their hole is also not on all
copper layer
Fixes #15355
https://gitlab.com/kicad/code/kicad/-/issues/15355
This commit is contained in:
jean-pierre charras 2023-08-05 10:40:35 +02:00
parent 576be53eb1
commit 86eaa3de35
1 changed files with 4 additions and 0 deletions

View File

@ -931,6 +931,10 @@ void BRDITEMS_PLOTTER::PlotDrillMarks()
{
const PCB_VIA* via = static_cast<const PCB_VIA*>( track );
// Via are not always on all layers
if( ( via->GetLayerSet() & m_layerMask ).none() )
continue;
plotOneDrillMark( PAD_DRILL_SHAPE_CIRCLE, via->GetStart(),
VECTOR2I( via->GetDrillValue(), 0 ), VECTOR2I( via->GetWidth(), 0 ),
ANGLE_0, smallDrill );