X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/68275b8532c786567659db548e905e5495509a4b..fd85b0640ea48f66a27e5908930e9f004de698b6:/src/common/config.cpp diff --git a/src/common/config.cpp b/src/common/config.cpp index d2015ed568..1b614016b2 100644 --- a/src/common/config.cpp +++ b/src/common/config.cpp @@ -132,9 +132,9 @@ bool wxConfigBase::Read(const wxString& key, long *pl, long defVal) const bool wxConfigBase::Read(const wxString& key, double* val) const { wxString str; - if (Read(key, & str)) + if ( Read(key, &str) ) { - return wxSscanf(str, _T("%g"), val) == 1; + return str.ToDouble(val); } return FALSE;