cli: accept multiple gerber layers for single layer plotting
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/19089
(cherry picked from commit 325d6ff064)
This commit is contained in:
committed by
Wayne Stambaugh
parent
3774e31db8
commit
84d00a7887
@@ -605,7 +605,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 );
|
||||
|
||||
Reference in New Issue
Block a user