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:
@@ -867,7 +867,7 @@ void wxDatePickerCtrlGeneric::OnKillFocus(wxFocusEvent &ev)
|
|||||||
m_txt->SetValue(wxEmptyString);
|
m_txt->SetValue(wxEmptyString);
|
||||||
|
|
||||||
// notify that we had to change the date after validation
|
// 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()) )
|
(!dt.IsValid() && m_currentDate.IsValid()) )
|
||||||
{
|
{
|
||||||
m_currentDate = dt;
|
m_currentDate = dt;
|
||||||
|
Reference in New Issue
Block a user