From 15e42bb781df7f069cc3b008f2a8004e398820af Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 14 Apr 2012 22:27:31 +0000 Subject: [PATCH] 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 --- src/common/valgen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/valgen.cpp b/src/common/valgen.cpp index bc5d8c8..315d53a 100644 --- a/src/common/valgen.cpp +++ b/src/common/valgen.cpp @@ -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() { -- 2.7.4