]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 1184295 ] wxDateTimePickerCtrl Create() fix for wxDP_ALLOWNONE
authorJulian Smart <julian@anthemion.co.uk>
Sun, 17 Apr 2005 13:17:32 +0000 (13:17 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 17 Apr 2005 13:17:32 +0000 (13:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/datectrl.cpp

index 2660838d00064c8a88c42b80a1de9f93b1e922ed..4b6c8c6e61ec9d6179b43f632145882bacb828cf 100644 (file)
@@ -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;