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:
parent
e9651794d6
commit
325d6ff064
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user