Eeschema, schematic file save issue: fix missing switch to C locale before saving files

The scale factor of bitmap images was incorrectly saved in countries using a comma as floating point separator

Fixes: lp:1763726
https://bugs.launchpad.net/kicad/+bug/1763726
This commit is contained in:
jean-pierre charras 2018-04-14 16:51:58 +02:00
parent 9b5bbd7c77
commit 4a254ee7f3
1 changed files with 2 additions and 0 deletions

View File

@ -1690,6 +1690,8 @@ void SCH_LEGACY_PLUGIN::Save( const wxString& aFileName, SCH_SCREEN* aScreen, KI
wxCHECK_RET( aScreen != NULL, "NULL SCH_SCREEN object." );
wxCHECK_RET( !aFileName.IsEmpty(), "No schematic file name defined." );
LOCALE_IO toggle; // toggles on, then off, the C locale, to write floating point values.
init( aKiway, aProperties );
wxFileName fn = aFileName;