7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 14:41:42 +00:00

cli: accept multiple gerber layers for single layer plotting

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/19089
This commit is contained in:
Mike Williams 2024-11-18 09:39:47 -05:00
parent e9651794d6
commit 325d6ff064

View File

@ -1035,7 +1035,10 @@ int PCBNEW_JOBS_HANDLER::JobExportGerber( JOB* aJob )
wxString sheetName;
wxString sheetPath;
if( aGerberJob->m_printMaskLayer.size() == 1 )
// The first layer will be treated as the layer name for the gerber header,
// the other layers will be treated equivalent to the "Plot on All Layers" option
// in the GUI
if( aGerberJob->m_printMaskLayer.size() >= 1 )
{
layer = aGerberJob->m_printMaskLayer.front();
layerName = brd->GetLayerName( layer );