fix assert when leaving control with wxDP_ALLOWNONE style (patch 1190145)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-05-22 22:17:47 +00:00
parent ebb2300fce
commit 58e041b753

View File

@@ -867,7 +867,7 @@ void wxDatePickerCtrlGeneric::OnKillFocus(wxFocusEvent &ev)
m_txt->SetValue(wxEmptyString);
// notify that we had to change the date after validation
if ( (dt.IsValid() && m_currentDate != dt) ||
if ( (dt.IsValid() && (!m_currentDate.IsValid() || m_currentDate != dt)) ||
(!dt.IsValid() && m_currentDate.IsValid()) )
{
m_currentDate = dt;