]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/datectlg.cpp
DMC typo fixes.
[wxWidgets.git] / src / generic / datectlg.cpp
index b08865412933e0ac7297fe7fc5ee0a8e00351840..299aec46f77c0f470a5d63ed81429a1b79752177 100644 (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;