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

(cherry picked from commit 64c36e8bda)
This commit is contained in:
Seth Hillbrand 2024-06-27 09:58:21 -07:00
parent 1308fd7c4a
commit 8c6edc0414
1 changed files with 1 additions and 1 deletions

View File

@ -795,7 +795,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 );
}
}