From 30e5731f14d731682fbb05d7e5b1b25036eee6e1 Mon Sep 17 00:00:00 2001 From: kojin Date: Mon, 6 Sep 2021 15:18:27 -0400 Subject: [PATCH] common: fix locale oversight in IniInterface --- common/IniInterface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/IniInterface.cpp b/common/IniInterface.cpp index ebb0af9b84..2a44ff1c53 100644 --- a/common/IniInterface.cpp +++ b/common/IniInterface.cpp @@ -194,12 +194,12 @@ int IniLoader::EntryBitfield(const wxString& var, int value, const int defvalue) void IniLoader::Entry(const wxString& var, double& value, const double defvalue) { - auto readval = wxString::FromDouble(value); + auto readval = wxString::FromCDouble(value); if (m_Config) m_Config->Read(var, &readval); - if (!readval.ToDouble(&value)) + if (!readval.ToCDouble(&value)) value = 0.0; } @@ -369,7 +369,7 @@ void IniSaver::Entry(const wxString& var, double& value, const double defvalue) if (!m_Config) return; - m_Config->Write(var, wxString::FromDouble(value)); + m_Config->Write(var, wxString::FromCDouble(value)); } void IniSaver::Entry(const wxString& var, wxPoint& value, const wxPoint defvalue)