From: Robin Dunn Date: Wed, 1 Nov 2006 07:09:21 +0000 (+0000) Subject: Fix for always failing assert in GetValue. Save the same value that X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/82ec1f703513f5a09edfea7403481c23fe7b4d1e 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 --- 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