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:
+11
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user