fixed logic bug in ParseDate
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3082,7 +3082,7 @@ const wxChar *wxDateTime::ParseDate(const wxChar *date)
|
|||||||
if ( haveDay )
|
if ( haveDay )
|
||||||
{
|
{
|
||||||
// we already have the day, so may only be a month or year
|
// we already have the day, so may only be a month or year
|
||||||
if ( val > 12 )
|
if ( !haveYear && (val > 12) )
|
||||||
{
|
{
|
||||||
isYear = TRUE;
|
isYear = TRUE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user