bug in month day parsing - now check that it's > 1 too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2539,7 +2539,7 @@ const wxChar *wxDateTime::ParseFormat(const wxChar *date,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case _T('d'): // day of a month (01-31)
|
case _T('d'): // day of a month (01-31)
|
||||||
if ( !GetNumericToken(input, &num) || (num > 31) )
|
if ( !GetNumericToken(input, &num) || (num > 31) || (num < 1) )
|
||||||
{
|
{
|
||||||
// no match
|
// no match
|
||||||
return (wxChar *)NULL;
|
return (wxChar *)NULL;
|
||||||
|
Reference in New Issue
Block a user