0,0 origin isn't an option we give to the user.
Fixes https://gitlab.com/kicad/code/kicad/issues/12324
This commit is contained in:
parent
3f63f9fc57
commit
da171b9665
|
@ -165,7 +165,7 @@ DIALOG_EXPORT_STEP::DIALOG_EXPORT_STEP( PCB_EDIT_FRAME* aParent, const wxString&
|
||||||
|
|
||||||
switch( m_STEP_org_opt )
|
switch( m_STEP_org_opt )
|
||||||
{
|
{
|
||||||
default: break;
|
default:
|
||||||
case STEP_ORG_PLOT_AXIS: m_rbDrillAndPlotOrigin->SetValue( true ); break;
|
case STEP_ORG_PLOT_AXIS: m_rbDrillAndPlotOrigin->SetValue( true ); break;
|
||||||
case STEP_ORG_GRID_AXIS: m_rbGridOrigin->SetValue( true ); break;
|
case STEP_ORG_GRID_AXIS: m_rbGridOrigin->SetValue( true ); break;
|
||||||
case STEP_ORG_USER: m_rbUserDefinedOrigin->SetValue( true ); break;
|
case STEP_ORG_USER: m_rbUserDefinedOrigin->SetValue( true ); break;
|
||||||
|
@ -410,6 +410,7 @@ void DIALOG_EXPORT_STEP::onExportButton( wxCommandEvent& aEvent )
|
||||||
switch( orgOpt )
|
switch( orgOpt )
|
||||||
{
|
{
|
||||||
case DIALOG_EXPORT_STEP::STEP_ORG_0:
|
case DIALOG_EXPORT_STEP::STEP_ORG_0:
|
||||||
|
wxFAIL_MSG( wxT( "Unsupported origin option: how did we get here?" ) );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DIALOG_EXPORT_STEP::STEP_ORG_PLOT_AXIS:
|
case DIALOG_EXPORT_STEP::STEP_ORG_PLOT_AXIS:
|
||||||
|
|
|
@ -309,7 +309,7 @@ PCBNEW_SETTINGS::PCBNEW_SETTINGS()
|
||||||
&m_ExportIdf.units_mils, false ) );
|
&m_ExportIdf.units_mils, false ) );
|
||||||
|
|
||||||
m_params.emplace_back( new PARAM<int>( "export_step.origin_mode",
|
m_params.emplace_back( new PARAM<int>( "export_step.origin_mode",
|
||||||
&m_ExportStep.origin_mode, 0 ) );
|
&m_ExportStep.origin_mode, 1 ) );
|
||||||
|
|
||||||
m_params.emplace_back( new PARAM<int>( "export_step.origin_units",
|
m_params.emplace_back( new PARAM<int>( "export_step.origin_units",
|
||||||
&m_ExportStep.origin_units, 0 ) );
|
&m_ExportStep.origin_units, 0 ) );
|
||||||
|
|
Loading…
Reference in New Issue