Add flag to pdf jobs created by gui needed for processing correctly. Fix enum naming

This commit is contained in:
Marek Roszko
2024-12-31 11:00:19 -05:00
parent 33183ad795
commit d6bf87bcaa
5 changed files with 25 additions and 15 deletions
+10
View File
@@ -543,6 +543,16 @@ void DIALOG_PLOT::transferPlotParamsToJob()
pdfJob->m_pdfBackFPPropertyPopups = m_plotOpts.m_PDFBackFPPropertyPopups;
pdfJob->m_pdfMetadata = m_plotOpts.m_PDFMetadata;
pdfJob->m_pdfSingle = m_plotOpts.m_PDFSingle;
// we need to embed this for the cli deprecation fix
if( pdfJob->m_pdfSingle )
{
pdfJob->m_pdfGenMode = JOB_EXPORT_PCB_PDF::GEN_MODE::ONE_PAGE_PER_LAYER_ONE_FILE;
}
else
{
pdfJob->m_pdfGenMode = JOB_EXPORT_PCB_PDF::GEN_MODE::ALL_LAYERS_SEPARATE_FILE;
}
}
m_job->m_useDrillOrigin = m_plotOpts.GetUseAuxOrigin();