pcbnew: Clean up warnings with unit handling in the DXF export

(cherry picked from commit ff9d899ae0)
This commit is contained in:
Ian McInerney
2019-07-10 16:47:12 +02:00
committed by Wayne Stambaugh
parent 09d7d0f1bc
commit 40ba502853
6 changed files with 18 additions and 24 deletions
+2 -1
View File
@@ -1060,7 +1060,8 @@ PLOTTER* StartPlotBoard( BOARD *aBoard, PCB_PLOT_PARAMS *aPlotOpts,
case PLOT_FORMAT_DXF:
DXF_PLOTTER* DXF_plotter;
DXF_plotter = new DXF_PLOTTER();
DXF_plotter->SetUnits( static_cast<DXF_PLOTTER::Units>( aPlotOpts->GetDXFPlotUnits() ) );
DXF_plotter->SetUnits(
static_cast<DXF_PLOTTER::DXF_UNITS>( aPlotOpts->GetDXFPlotUnits() ) );
plotter = DXF_plotter;
break;