Fix via layer test for DXF plotting

Vias might have their primary layer set to a single layer but cross
multiple layers that should be included when plotting

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18282
This commit is contained in:
Seth Hillbrand 2024-06-27 09:58:21 -07:00
parent dc2a63d146
commit 64c36e8bda
1 changed files with 1 additions and 1 deletions

View File

@ -803,7 +803,7 @@ void PlotLayerOutlines( BOARD* aBoard, PLOTTER* aPlotter, LSET aLayerMask,
const PCB_VIA* via = static_cast<const PCB_VIA*>( track );
if( via->IsOnLayer( layer ) ) // via holes can be not through holes
if( via->GetLayerSet().Contains( layer ) ) // via holes can be not through holes
aPlotter->Circle( via->GetPosition(), via->GetDrillValue(), FILL_T::NO_FILL );
}
}