From 4d5364211d1647e6a7ef52acb947f1c592425fdb Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 9 Nov 2006 18:00:48 +0000 Subject: [PATCH] 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 --- src/msw/datectrl.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.50.0