also reset errno iin ToDouble()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4ea4767ef9
commit
e71e5b3726
@ -1710,6 +1710,8 @@ bool wxString::ToDouble(double *val) const
|
||||
{
|
||||
wxCHECK_MSG( val, false, _T("NULL pointer in wxString::ToDouble") );
|
||||
|
||||
errno = 0;
|
||||
|
||||
const wxChar *start = c_str();
|
||||
wxChar *end;
|
||||
*val = wxStrtod(start, &end);
|
||||
|
Loading…
Reference in New Issue
Block a user