From 4a254ee7f30df8c4d677eab88fc1615198ce4ded Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 14 Apr 2018 16:51:58 +0200 Subject: [PATCH] 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 --- eeschema/sch_legacy_plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eeschema/sch_legacy_plugin.cpp b/eeschema/sch_legacy_plugin.cpp index cf62cfcc4f..edc778e601 100644 --- a/eeschema/sch_legacy_plugin.cpp +++ b/eeschema/sch_legacy_plugin.cpp @@ -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;