Update DXF units drop-down.
Fixes: lp:1836927 * https://bugs.launchpad.net/kicad/+bug/1836927
This commit is contained in:
parent
1b5e1cd4d2
commit
4a1edf581e
|
@ -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<int>( m_plotOpts.GetDXFPlotUnits() ) );
|
||||
|
||||
// Plot mirror option
|
||||
m_plotMirrorOpt->SetValue( m_plotOpts.GetMirror() );
|
||||
|
||||
|
@ -557,7 +559,7 @@ static bool setInt( int* aResult, int aValue, int aMin, int aMax )
|
|||
void DIALOG_PLOT::applyPlotSettings()
|
||||
{
|
||||
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<PCB_PLOT_PARAMS::DrillMarksType>
|
||||
( m_drillShapeOpt->GetSelection() ) );
|
||||
|
||||
sel = m_drillShapeOpt->GetSelection();
|
||||
tempOptions.SetDrillMarksType( static_cast<PCB_PLOT_PARAMS::DrillMarksType>( sel ) );
|
||||
|
||||
tempOptions.SetMirror( m_plotMirrorOpt->GetValue() );
|
||||
tempOptions.SetPlotMode( m_plotModeOpt->GetSelection() == 1 ? SKETCH : FILLED );
|
||||
tempOptions.SetDXFPlotPolygonMode( m_DXF_plotModeOpt->GetValue() );
|
||||
tempOptions.SetDXFPlotUnits(
|
||||
static_cast<DXF_PLOTTER::DXF_UNITS>( m_DXF_plotUnits->GetSelection() ) );
|
||||
|
||||
sel = m_DXF_plotUnits->GetSelection();
|
||||
tempOptions.SetDXFPlotUnits( static_cast<DXF_PLOTTER::DXF_UNITS>( sel ) );
|
||||
|
||||
tempOptions.SetPlotViaOnMaskLayer( m_plotNoViaOnMaskOpt->GetValue() );
|
||||
|
||||
if( !m_DXF_plotTextStrokeFontOpt->IsEnabled() ) // Currently, only DXF supports this option
|
||||
|
|
Loading…
Reference in New Issue