Fill in missing bits of LAYER variable for printing/plotting.

Fixes https://gitlab.com/kicad/code/kicad/issues/11788
This commit is contained in:
Jeff Young
2022-06-10 22:38:01 +01:00
parent 20f4e62176
commit f22cf1cc3a
6 changed files with 14 additions and 2 deletions
+4
View File
@@ -1141,6 +1141,10 @@ PLOTTER* StartPlotBoard( BOARD *aBoard, const PCB_PLOT_PARAMS *aPlotOpts, int aL
KIGFX::PCB_RENDER_SETTINGS* renderSettings = new KIGFX::PCB_RENDER_SETTINGS();
renderSettings->LoadColors( aPlotOpts->ColorSettings() );
renderSettings->SetDefaultPenWidth( Millimeter2iu( 0.0212 ) ); // Hairline at 1200dpi
if( aLayer < GAL_LAYER_ID_END )
renderSettings->SetLayerName( aBoard->GetLayerName( ToLAYER_ID( aLayer ) ) );
plotter->SetRenderSettings( renderSettings );
// Compute the viewport and set the other options