X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/68275b8532c786567659db548e905e5495509a4b..e421922f90186d0619a806d277a0a2182e61b5fb:/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;