PLOT_CONTROLLER::PlotLayer(): fix bug when drill marks must be plotted.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21474
This commit is contained in:
jean-pierre charras
2025-08-13 12:34:49 +02:00
parent 60b4202766
commit 20d8c9c7f9
+11 -2
View File
@@ -484,8 +484,17 @@ bool PLOT_CONTROLLER::PlotLayer()
return false;
// Fully delegated to the parent
PlotOneBoardLayer( m_board, m_plotter, ToLAYER_ID( GetLayer() ), GetPlotOptions(), true );
PlotInteractiveLayer( m_board, m_plotter, GetPlotOptions() );
// Note : PlotOneBoardLayer() do not plot drill marks
if( GetPlotOptions().GetDrillMarksType() == DRILL_MARKS::NO_DRILL_SHAPE )
PlotOneBoardLayer( m_board, m_plotter, ToLAYER_ID( GetLayer() ), GetPlotOptions(), true );
else
{
LSEQ layerSequence( { ToLAYER_ID( GetLayer() ) } );
PlotBoardLayers( m_board, m_plotter, layerSequence, GetPlotOptions() );
PlotInteractiveLayer( m_board, m_plotter, GetPlotOptions() );
}
return true;
}