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:
parent
576be53eb1
commit
86eaa3de35
|
@ -931,6 +931,10 @@ void BRDITEMS_PLOTTER::PlotDrillMarks()
|
||||||
{
|
{
|
||||||
const PCB_VIA* via = static_cast<const PCB_VIA*>( track );
|
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(),
|
plotOneDrillMark( PAD_DRILL_SHAPE_CIRCLE, via->GetStart(),
|
||||||
VECTOR2I( via->GetDrillValue(), 0 ), VECTOR2I( via->GetWidth(), 0 ),
|
VECTOR2I( via->GetDrillValue(), 0 ), VECTOR2I( via->GetWidth(), 0 ),
|
||||||
ANGLE_0, smallDrill );
|
ANGLE_0, smallDrill );
|
||||||
|
|
Loading…
Reference in New Issue