Pcbnew, plot F&B Fab: ensure the DNP mark is plotted only on the right layer.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20458

(cherry picked from commit 99e65afa1f61083e7400e7e226209435a81b7b41)
This commit is contained in:
jean-pierre charras 2025-03-26 16:26:20 +01:00
parent c7f1d0a0ff
commit cac3a140cc

View File

@ -633,7 +633,8 @@ void PlotStandardLayer( BOARD* aBoard, PLOTTER* aPlotter, LSET aLayerMask,
if( footprint->IsDNP()
&& !itemplotter.GetHideDNPFPsOnFabLayers()
&& itemplotter.GetCrossoutDNPFPsOnFabLayers()
&& ( onFrontFab || onBackFab ) )
&& ( ( onFrontFab && footprint->GetLayer() == F_Cu ) ||
( onBackFab && footprint->GetLayer() == B_Cu ) ) )
{
BOX2I rect = footprint->GetBoundingHull().BBox();
int width = aBoard->GetDesignSettings().m_LineThickness[ LAYER_CLASS_FAB ];