Fix the check for wxUSE_DATETIME in wxGenericValidator code.

The #endif was somehow added at a wrong place and too much
wxDateTime-unrelated code was disabled when wxUSE_DATETIME was off.

Closes #14222.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2012-04-14 22:27:31 +00:00
parent 4e30a4ce57
commit 15e42bb781

View File

@ -84,6 +84,8 @@ wxGenericValidator::wxGenericValidator(wxDateTime *val)
m_pDateTime = val;
}
#endif // wxUSE_DATETIME
wxGenericValidator::wxGenericValidator(wxFileName *val)
{
Initialize();
@ -102,8 +104,6 @@ wxGenericValidator::wxGenericValidator(double *val)
m_pDouble = val;
}
#endif // wxUSE_DATETIME
wxGenericValidator::wxGenericValidator(const wxGenericValidator& val)
: wxValidator()
{