Update layer per page.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20352
This commit is contained in:
@@ -232,13 +232,15 @@ bool PCB_PLOTTER::Plot( const wxString& aOutputPath,
|
||||
nextLayer = layersToPlot[nextI];
|
||||
}
|
||||
|
||||
wxString pageName = m_board->GetLayerName( nextLayer );
|
||||
wxString sheetName = layerName;
|
||||
layerName = m_board->GetLayerName( nextLayer );
|
||||
|
||||
wxString pageName = layerName;
|
||||
wxString sheetName = layerName;
|
||||
|
||||
static_cast<PDF_PLOTTER*>( plotter )->ClosePage();
|
||||
static_cast<PDF_PLOTTER*>( plotter )->StartPage( pageNumber, pageName );
|
||||
setupPlotterNewPDFPage( plotter, m_board, &m_plotOpts, sheetName, sheetPath,
|
||||
pageNumber, finalPageCount );
|
||||
setupPlotterNewPDFPage( plotter, m_board, &m_plotOpts, layerName, sheetName,
|
||||
sheetPath, pageNumber, finalPageCount );
|
||||
}
|
||||
|
||||
// last page
|
||||
|
||||
Reference in New Issue
Block a user