From ae1dd1ed2004add10490298d35e1bab614b4e5da Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Tue, 31 Dec 2024 23:14:58 -0500 Subject: [PATCH] Fix dxf/svg job status --- pcbnew/pcbnew_jobs_handler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/pcbnew_jobs_handler.cpp b/pcbnew/pcbnew_jobs_handler.cpp index 06144668d8..d51b9c3274 100644 --- a/pcbnew/pcbnew_jobs_handler.cpp +++ b/pcbnew/pcbnew_jobs_handler.cpp @@ -690,7 +690,7 @@ int PCBNEW_JOBS_HANDLER::JobExportSvg( JOB* aJob ) PCB_PLOTTER::PlotJobToPlotOpts( plotOpts, aSvgJob ); PCB_PLOTTER plotter( brd, m_reporter, plotOpts ); - if( plotter.Plot( aSvgJob->GetFullOutputPath(), aSvgJob->m_printMaskLayer, + if( !plotter.Plot( aSvgJob->GetFullOutputPath(), aSvgJob->m_printMaskLayer, aSvgJob->m_printMaskLayersToIncludeOnAllLayers, false ) ) { return CLI::EXIT_CODES::ERR_UNKNOWN; @@ -782,7 +782,7 @@ int PCBNEW_JOBS_HANDLER::JobExportDxf( JOB* aJob ) PCB_PLOTTER::PlotJobToPlotOpts( plotOpts, aDxfJob ); PCB_PLOTTER plotter( brd, m_reporter, plotOpts ); - if( plotter.Plot( aDxfJob->GetFullOutputPath(), aDxfJob->m_printMaskLayer, + if( !plotter.Plot( aDxfJob->GetFullOutputPath(), aDxfJob->m_printMaskLayer, aDxfJob->m_printMaskLayersToIncludeOnAllLayers, false ) ) { return CLI::EXIT_CODES::ERR_UNKNOWN;