]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datetime.cpp
don't allow multiple root in the tree
[wxWidgets.git] / src / common / datetime.cpp
index 5cceff453a28e1c34e91aa3229befe71f88ae983..11c5c78824a208d8c2b94f36ffd2e689f6940a94 100644 (file)
@@ -2539,7 +2539,7 @@ const wxChar *wxDateTime::ParseFormat(const wxChar *date,
                 break;
 
             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
                     return (wxChar *)NULL;