git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43779
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// filter out duplicate DTN_DATETIMECHANGE events which the native
// control sends us when using wxDP_DROPDOWN style
// filter out duplicate DTN_DATETIMECHANGE events which the native
// control sends us when using wxDP_DROPDOWN style
- if ( !m_date.IsValid() || dt != m_date )
+ if ( (m_date.IsValid() != dt.IsValid()) ||
+ (m_date.IsValid() && dt != m_date) )
{
m_date = dt;
wxDateEvent event(this, dt, wxEVT_DATE_CHANGED);
{
m_date = dt;
wxDateEvent event(this, dt, wxEVT_DATE_CHANGED);
+ //else: both the old and new values are invalid, nothing changed