]> git.saurik.com Git - wxWidgets.git/commitdiff
Alwayas use SetValue in Create so m_date will be in sync
authorRobin Dunn <robin@alldunn.com>
Thu, 9 Nov 2006 18:00:48 +0000 (18:00 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 9 Nov 2006 18:00:48 +0000 (18:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/datectrl.cpp

index 84fa85f9a151616edafbd6a3292dac29cdc8a25e..4e8a940ad683ab5a0126a7033e1d50d043906f51 100644 (file)
@@ -156,6 +156,8 @@ wxDatePickerCtrl::Create(wxWindow *parent,
 
     if ( dt.IsValid() || (style & wxDP_ALLOWNONE) )
         SetValue(dt);
+    else
+        SetValue(wxDateTime::Today());
 
     return true;
 }