Apply ExportPdf fix to remaining jobs.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17863
(cherry picked from commit c0635f222d
)
This commit is contained in:
parent
2c0010fbcb
commit
836b3219c1
|
@ -109,6 +109,7 @@ int PCBNEW_JOBS_HANDLER::JobExportStep( JOB* aJob )
|
|||
|
||||
BOARD* brd = LoadBoard( aStepJob->m_filename, true );
|
||||
brd->GetProject()->ApplyTextVars( aJob->GetVarOverrides() );
|
||||
brd->SynchronizeProperties();
|
||||
|
||||
if( aStepJob->m_outputFile.IsEmpty() )
|
||||
{
|
||||
|
@ -234,6 +235,7 @@ int PCBNEW_JOBS_HANDLER::JobExportSvg( JOB* aJob )
|
|||
BOARD* brd = LoadBoard( aSvgJob->m_filename, true );
|
||||
loadOverrideDrawingSheet( brd, aSvgJob->m_drawingSheet );
|
||||
brd->GetProject()->ApplyTextVars( aJob->GetVarOverrides() );
|
||||
brd->SynchronizeProperties();
|
||||
|
||||
if( aJob->IsCli() )
|
||||
{
|
||||
|
@ -260,6 +262,7 @@ int PCBNEW_JOBS_HANDLER::JobExportDxf( JOB* aJob )
|
|||
BOARD* brd = LoadBoard( aDxfJob->m_filename, true );
|
||||
loadOverrideDrawingSheet( brd, aDxfJob->m_drawingSheet );
|
||||
brd->GetProject()->ApplyTextVars( aJob->GetVarOverrides() );
|
||||
brd->SynchronizeProperties();
|
||||
|
||||
if( aDxfJob->m_outputFile.IsEmpty() )
|
||||
{
|
||||
|
@ -431,6 +434,7 @@ int PCBNEW_JOBS_HANDLER::JobExportGerbers( JOB* aJob )
|
|||
BOARD* brd = LoadBoard( aGerberJob->m_filename, true );
|
||||
loadOverrideDrawingSheet( brd, aGerberJob->m_drawingSheet );
|
||||
brd->GetProject()->ApplyTextVars( aJob->GetVarOverrides() );
|
||||
brd->SynchronizeProperties();
|
||||
|
||||
PCB_PLOT_PARAMS boardPlotOptions = brd->GetPlotOptions();
|
||||
LSET plotOnAllLayersSelection = boardPlotOptions.GetPlotOnAllLayersSelection();
|
||||
|
@ -578,6 +582,7 @@ int PCBNEW_JOBS_HANDLER::JobExportGerber( JOB* aJob )
|
|||
|
||||
BOARD* brd = LoadBoard( aGerberJob->m_filename, true );
|
||||
brd->GetProject()->ApplyTextVars( aJob->GetVarOverrides() );
|
||||
brd->SynchronizeProperties();
|
||||
|
||||
if( aGerberJob->m_outputFile.IsEmpty() )
|
||||
{
|
||||
|
@ -1011,6 +1016,7 @@ int PCBNEW_JOBS_HANDLER::doFpExportSvg( JOB_FP_EXPORT_SVG* aSvgJob, const FOOTPR
|
|||
std::unique_ptr<BOARD> brd;
|
||||
brd.reset( CreateEmptyBoard() );
|
||||
brd->GetProject()->ApplyTextVars( aSvgJob->GetVarOverrides() );
|
||||
brd->SynchronizeProperties();
|
||||
|
||||
FOOTPRINT* fp = dynamic_cast<FOOTPRINT*>( aFootprint->Clone() );
|
||||
|
||||
|
@ -1072,6 +1078,7 @@ int PCBNEW_JOBS_HANDLER::JobExportDrc( JOB* aJob )
|
|||
|
||||
BOARD* brd = LoadBoard( drcJob->m_filename, true );
|
||||
brd->GetProject()->ApplyTextVars( aJob->GetVarOverrides() );
|
||||
brd->SynchronizeProperties();
|
||||
|
||||
if( drcJob->m_outputFile.IsEmpty() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue