From: Robin Dunn Date: Thu, 9 Nov 2006 18:00:48 +0000 (+0000) Subject: Alwayas use SetValue in Create so m_date will be in sync X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4d5364211d1647e6a7ef52acb947f1c592425fdb Alwayas use SetValue in Create so m_date will be in sync git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/datectrl.cpp b/src/msw/datectrl.cpp index 84fa85f9a1..4e8a940ad6 100644 --- a/src/msw/datectrl.cpp +++ b/src/msw/datectrl.cpp @@ -156,6 +156,8 @@ wxDatePickerCtrl::Create(wxWindow *parent, if ( dt.IsValid() || (style & wxDP_ALLOWNONE) ) SetValue(dt); + else + SetValue(wxDateTime::Today()); return true; }