]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for always failing assert in GetValue. Save the same value that
authorRobin Dunn <robin@alldunn.com>
Wed, 1 Nov 2006 07:09:21 +0000 (07:09 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 1 Nov 2006 07:09:21 +0000 (07:09 +0000)
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

index c9129f87565be99bb5679012dc028edd206d74ec..84fa85f9a151616edafbd6a3292dac29cdc8a25e 100644 (file)
@@ -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