pcbnew, export to STEP: fix error in command line tolerance option (--min-distance="0.0100 mm") is some countries

In countries using a comma as floating point separator, the --min-distance="0.0100 mm" was passed as --min-distance="0,0100 mm"
This is incorrect and broke the command line.

Fixes: lp:1814559
https://bugs.launchpad.net/kicad/+bug/1814559
This commit is contained in:
jean-pierre charras 2019-02-04 18:05:49 +01:00
parent 4a641ec5ea
commit 73a0cbff62
1 changed files with 1 additions and 0 deletions

View File

@ -317,6 +317,7 @@ void DIALOG_EXPORT_STEP::onExportButton( wxCommandEvent& aEvent )
if( m_tolerance->GetSelection() != 1 )
{
LOCALE_IO dummy;
double tolerance = 0.001 * std::pow<double>( 10.0, m_tolerance->GetSelection() - 1 );
cmdK2S.Append( wxString::Format( " --min-distance=\"%.4f mm\"", tolerance ) );
}