diff --git a/pcbnew/pcbnew_jobs_handler.cpp b/pcbnew/pcbnew_jobs_handler.cpp index c8834471da..8e61df3c0e 100644 --- a/pcbnew/pcbnew_jobs_handler.cpp +++ b/pcbnew/pcbnew_jobs_handler.cpp @@ -1126,9 +1126,6 @@ int PCBNEW_JOBS_HANDLER::JobExportPdf( JOB* aJob ) sheetPath = pdfJob->GetVarOverrides().at( wxT( "SHEETPATH" ) ); } - - LOCALE_IO dummy; - if( !pcbPlotter.Plot( outPath, pdfJob->m_plotLayerSequence, pdfJob->m_plotOnAllLayersSequence, false, plotAllLayersOneFile, layerName, sheetName, sheetPath ) ) @@ -1222,8 +1219,6 @@ int PCBNEW_JOBS_HANDLER::JobExportPs( JOB* aJob ) sheetPath = psJob->GetVarOverrides().at( wxT( "SHEETPATH" ) ); } - LOCALE_IO dummy; - if( !pcbPlotter.Plot( outPath, psJob->m_plotLayerSequence, psJob->m_plotOnAllLayersSequence, false, isSingle, layerName, sheetName, sheetPath ) ) { @@ -1371,17 +1366,14 @@ int PCBNEW_JOBS_HANDLER::JobExportGerbers( JOB* aJob ) // We are feeding it one layer at the start here to silence a logic check GERBER_PLOTTER* plotter; - { - LOCALE_IO dummy; - plotter = (GERBER_PLOTTER*) StartPlotBoard( brd, &plotOpts, layer, layerName, - fn.GetFullPath(), sheetName, sheetPath ); - } + plotter = (GERBER_PLOTTER*) StartPlotBoard( brd, &plotOpts, layer, layerName, + fn.GetFullPath(), sheetName, sheetPath ); if( plotter ) { m_reporter->Report( wxString::Format( _( "Plotted to '%s'.\n" ), fn.GetFullPath() ), RPT_SEVERITY_ACTION ); - LOCALE_IO dummy; + PlotBoardLayers( brd, plotter, plotSequence, plotOpts ); plotter->EndPlot(); } diff --git a/pcbnew/pcbplot.cpp b/pcbnew/pcbplot.cpp index c05a81f117..2c3bfbc4cc 100644 --- a/pcbnew/pcbplot.cpp +++ b/pcbnew/pcbplot.cpp @@ -404,8 +404,6 @@ PLOT_CONTROLLER::~PLOT_CONTROLLER() */ void PLOT_CONTROLLER::ClosePlot() { - LOCALE_IO toggle; - if( m_plotter ) { m_plotter->EndPlot(); @@ -421,8 +419,6 @@ void PLOT_CONTROLLER::ClosePlot() bool PLOT_CONTROLLER::OpenPlotfile( const wxString& aSuffix, PLOT_FORMAT aFormat, const wxString& aSheetName, const wxString& aSheetPath ) { - LOCALE_IO toggle; - // Save the current format: sadly some plot routines depends on this but the main reason // is that the StartPlot method uses it to dispatch the plotter creation GetPlotOptions().SetFormat( aFormat ); @@ -477,8 +473,6 @@ bool PLOT_CONTROLLER::OpenPlotfile( const wxString& aSuffix, PLOT_FORMAT aFormat bool PLOT_CONTROLLER::PlotLayer() { - LOCALE_IO toggle; - // No plot open, nothing to do... if( !m_plotter ) return false; @@ -501,8 +495,6 @@ bool PLOT_CONTROLLER::PlotLayer() bool PLOT_CONTROLLER::PlotLayers( const LSEQ& aLayerSequence ) { - LOCALE_IO toggle; - // No plot open, nothing to do... if( !m_plotter ) return false;