discard time part of m_date, otherwise comparisons with other dates fail
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -256,7 +256,10 @@ void wxDatePickerCtrl::SetValue(const wxDateTime& dt)
|
||||
wxLogDebug(_T("DateTime_SetSystemtime() failed"));
|
||||
}
|
||||
|
||||
// we need to keep only the date part, times don't make sense for this
|
||||
// control (in particular, comparisons with other dates would fail)
|
||||
m_date = dt;
|
||||
m_date.ResetTime();
|
||||
}
|
||||
|
||||
wxDateTime wxDatePickerCtrl::GetValue() const
|
||||
|
Reference in New Issue
Block a user