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:
@@ -84,6 +84,8 @@ wxGenericValidator::wxGenericValidator(wxDateTime *val)
|
|||||||
m_pDateTime = val;
|
m_pDateTime = val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // wxUSE_DATETIME
|
||||||
|
|
||||||
wxGenericValidator::wxGenericValidator(wxFileName *val)
|
wxGenericValidator::wxGenericValidator(wxFileName *val)
|
||||||
{
|
{
|
||||||
Initialize();
|
Initialize();
|
||||||
@@ -102,8 +104,6 @@ wxGenericValidator::wxGenericValidator(double *val)
|
|||||||
m_pDouble = val;
|
m_pDouble = val;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // wxUSE_DATETIME
|
|
||||||
|
|
||||||
wxGenericValidator::wxGenericValidator(const wxGenericValidator& val)
|
wxGenericValidator::wxGenericValidator(const wxGenericValidator& val)
|
||||||
: wxValidator()
|
: wxValidator()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user