From 10aee5e5d42429bb25934a467dd8ad4648153487 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 21 Jun 2007 11:53:48 +0000 Subject: [PATCH] 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 --- src/common/wxchar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/wxchar.cpp b/src/common/wxchar.cpp index e8a0640487..51b42ff374 100644 --- a/src/common/wxchar.cpp +++ b/src/common/wxchar.cpp @@ -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);