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:
parent
1308fd7c4a
commit
8c6edc0414
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue