From: Julian Smart Date: Sun, 17 Apr 2005 13:17:32 +0000 (+0000) Subject: Applied patch [ 1184295 ] wxDateTimePickerCtrl Create() fix for wxDP_ALLOWNONE X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bab3f3eac44fdc682febe918b3b50250e1991dec Applied patch [ 1184295 ] wxDateTimePickerCtrl Create() fix for wxDP_ALLOWNONE git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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;