don't use wxFromSystemTime() with possibly invalid date (closes bug 1596606)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -256,7 +256,7 @@ void wxDatePickerCtrl::SetValue(const wxDateTime& dt)
|
|||||||
wxLogDebug(_T("DateTime_SetSystemtime() failed"));
|
wxLogDebug(_T("DateTime_SetSystemtime() failed"));
|
||||||
}
|
}
|
||||||
|
|
||||||
wxFromSystemTime(&m_date, st);
|
m_date = dt;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxDateTime wxDatePickerCtrl::GetValue() const
|
wxDateTime wxDatePickerCtrl::GetValue() const
|
||||||
|
Reference in New Issue
Block a user