From 82ec1f703513f5a09edfea7403481c23fe7b4d1e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 1 Nov 2006 07:09:21 +0000 Subject: [PATCH] Fix for always failing assert in GetValue. Save the same value that will be tested for there (the date without any time set.) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/datectrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/datectrl.cpp b/src/msw/datectrl.cpp index c9129f8756..84fa85f9a1 100644 --- a/src/msw/datectrl.cpp +++ b/src/msw/datectrl.cpp @@ -254,7 +254,7 @@ void wxDatePickerCtrl::SetValue(const wxDateTime& dt) wxLogDebug(_T("DateTime_SetSystemtime() failed")); } - m_date = dt; + wxFromSystemTime(&m_date, st); } wxDateTime wxDatePickerCtrl::GetValue() const -- 2.45.2