Avoid assertion failure when typing into generic wxDatePickerCtrl
Don't call wxCalendarCtrl::SetDate() if the current date is invalid, this would just result in an assertion failure.
This commit is contained in:
parent
e3a728d637
commit
9293634af1
@ -192,7 +192,8 @@ private:
|
||||
if ( (dt.IsValid() && (!dtOld.IsValid() || dt != dtOld)) ||
|
||||
(!dt.IsValid() && dtOld.IsValid()) )
|
||||
{
|
||||
SetDate(dt);
|
||||
if ( dt.IsValid() )
|
||||
SetDate(dt);
|
||||
SendDateEvent(dt);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user