diff --git a/src/msw/datectrl.cpp b/src/msw/datectrl.cpp index 2660838d00..4b6c8c6e61 100644 --- a/src/msw/datectrl.cpp +++ b/src/msw/datectrl.cpp @@ -141,7 +141,7 @@ wxDatePickerCtrl::Create(wxWindow *parent, if ( !MSWCreateControl(DATETIMEPICK_CLASS, wxEmptyString, pos, size) ) return false; - if ( dt.IsValid() ) + if ( dt.IsValid() || (style & wxDP_ALLOWNONE) ) SetValue(dt); return true;