Update layer per page.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20352
This commit is contained in:
Jeff Young
2025-03-17 09:51:53 +00:00
parent dd921354fc
commit 1848401d5b
3 changed files with 15 additions and 11 deletions
+6 -4
View File
@@ -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