fix bug in our wxStrtod() reimplementation which prevented it from ever working (bug 1721643)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2025,7 +2025,7 @@ WXDLLEXPORT double wxStrtod(const wxChar *nptr, wxChar **endptr)
|
||||
while (wxIsdigit(*nptr)) nptr++;
|
||||
}
|
||||
|
||||
wxString data(nptr, nptr-start);
|
||||
wxString data(start, nptr-start);
|
||||
wxWX2MBbuf dat = data.mb_str(wxConvLibc);
|
||||
char *rdat = wxMBSTRINGCAST dat;
|
||||
double ret = strtod(dat, &rdat);
|
||||
|
Reference in New Issue
Block a user