From 34ed850a23460e10b68ba855785f34f359545870 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 17 Feb 2022 11:41:23 +0100 Subject: [PATCH] GERBER_JOBFILE_WRITER: fix missing handling of User_1 to User_9 user layers. Fixes #10878 https://gitlab.com/kicad/code/kicad/issues/10878 --- pcbnew/exporters/gerber_jobfile_writer.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pcbnew/exporters/gerber_jobfile_writer.cpp b/pcbnew/exporters/gerber_jobfile_writer.cpp index 99c5d1b2b4..9e00b20a41 100644 --- a/pcbnew/exporters/gerber_jobfile_writer.cpp +++ b/pcbnew/exporters/gerber_jobfile_writer.cpp @@ -424,6 +424,18 @@ void GERBER_JOBFILE_WRITER::addJSONFilesAttributes() skip_file = true; break; + case User_1: + case User_2: + case User_3: + case User_4: + case User_5: + case User_6: + case User_7: + case User_8: + case User_9: + gbr_layer_id = wxT( "Other,User" ); + break; + default: skip_file = true; m_reporter->Report( wxT( "Unexpected layer id in job file" ), RPT_SEVERITY_ERROR );