pcb_calculateur: fix incorrect floating point separator when resetting to default.
Fixes #7622 https://gitlab.com/kicad/code/kicad/issues/7622
This commit is contained in:
parent
bf4d2f8bfb
commit
9b25e50f3d
|
@ -211,18 +211,19 @@ void PCB_CALCULATOR_FRAME::OnTWCalculateFromIntWidth( wxCommandEvent& event )
|
|||
|
||||
void PCB_CALCULATOR_FRAME::OnTWResetButtonClick( wxCommandEvent& event )
|
||||
{
|
||||
m_TrackCurrentValue->SetValue( wxT( "1.0" ) );
|
||||
m_TrackDeltaTValue->SetValue( wxT( "10.0" ) );
|
||||
m_TrackLengthValue->SetValue( wxT( "20" ) );
|
||||
// a wxString:Format( "%g", xx) is used to use local separator in floats
|
||||
m_TrackCurrentValue->SetValue( wxString::Format( "%g", 1.0 ) );
|
||||
m_TrackDeltaTValue->SetValue( wxString::Format( "%g", 10.0 ) );
|
||||
m_TrackLengthValue->SetValue( wxString::Format( "%g", 20.0 ) );
|
||||
m_TW_CuLength_choiceUnit->SetSelection( 0 );
|
||||
m_TWResistivity->SetValue( wxT( "1.72e-8" ) );
|
||||
m_ExtTrackWidthValue->SetValue( wxT( "0.2" ) );
|
||||
m_TWResistivity->SetValue( wxString::Format( "%g", 1.72e-8 ) );
|
||||
m_ExtTrackWidthValue->SetValue( wxString::Format( "%g", 0.2 ) );
|
||||
m_TW_ExtTrackWidth_choiceUnit->SetSelection( 0 );
|
||||
m_ExtTrackThicknessValue->SetValue( wxT( "0.035" ) );
|
||||
m_ExtTrackThicknessValue->SetValue( wxString::Format( "%g", 0.035 ) );
|
||||
m_ExtTrackThicknessUnit->SetSelection( 0 );
|
||||
m_IntTrackWidthValue->SetValue( wxT( "0.2" ) );
|
||||
m_IntTrackWidthValue->SetValue( wxString::Format( "%g", 0.2 ) );
|
||||
m_TW_IntTrackWidth_choiceUnit->SetSelection( 0 );
|
||||
m_IntTrackThicknessValue->SetValue( wxT( "0.035" ) );
|
||||
m_IntTrackThicknessValue->SetValue( wxString::Format( "%g", 0.035 ) );
|
||||
m_IntTrackThicknessUnit->SetSelection( 0 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue