diff --git a/pcbnew/dialogs/dialog_plot.cpp b/pcbnew/dialogs/dialog_plot.cpp index b59f993885..de4cdee43b 100644 --- a/pcbnew/dialogs/dialog_plot.cpp +++ b/pcbnew/dialogs/dialog_plot.cpp @@ -185,6 +185,8 @@ void DIALOG_PLOT::init_Dialog() // Plot text mode m_DXF_plotTextStrokeFontOpt->SetValue( m_plotOpts.GetTextMode() == PLOTTEXTMODE_DEFAULT ); + m_DXF_plotUnits->SetSelection( static_cast( m_plotOpts.GetDXFPlotUnits() ) ); + // Plot mirror option m_plotMirrorOpt->SetValue( m_plotOpts.GetMirror() ); @@ -556,8 +558,8 @@ static bool setInt( int* aResult, int aValue, int aMin, int aMax ) void DIALOG_PLOT::applyPlotSettings() { - REPORTER& reporter = m_messagesPanel->Reporter(); - + REPORTER& reporter = m_messagesPanel->Reporter(); + int sel; PCB_PLOT_PARAMS tempOptions; tempOptions.SetExcludeEdgeLayer( m_excludeEdgeLayerOpt->GetValue() ); @@ -569,13 +571,17 @@ void DIALOG_PLOT::applyPlotSettings() tempOptions.SetPlotReference( m_plotModuleRefOpt->GetValue() ); tempOptions.SetPlotInvisibleText( m_plotInvisibleText->GetValue() ); tempOptions.SetScaleSelection( m_scaleOpt->GetSelection() ); - tempOptions.SetDrillMarksType( static_cast - ( m_drillShapeOpt->GetSelection() ) ); + + sel = m_drillShapeOpt->GetSelection(); + tempOptions.SetDrillMarksType( static_cast( sel ) ); + tempOptions.SetMirror( m_plotMirrorOpt->GetValue() ); tempOptions.SetPlotMode( m_plotModeOpt->GetSelection() == 1 ? SKETCH : FILLED ); tempOptions.SetDXFPlotPolygonMode( m_DXF_plotModeOpt->GetValue() ); - tempOptions.SetDXFPlotUnits( - static_cast( m_DXF_plotUnits->GetSelection() ) ); + + sel = m_DXF_plotUnits->GetSelection(); + tempOptions.SetDXFPlotUnits( static_cast( sel ) ); + tempOptions.SetPlotViaOnMaskLayer( m_plotNoViaOnMaskOpt->GetValue() ); if( !m_DXF_plotTextStrokeFontOpt->IsEnabled() ) // Currently, only DXF supports this option