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,6 +192,7 @@ private:
|
||||
if ( (dt.IsValid() && (!dtOld.IsValid() || dt != dtOld)) ||
|
||||
(!dt.IsValid() && dtOld.IsValid()) )
|
||||
{
|
||||
if ( dt.IsValid() )
|
||||
SetDate(dt);
|
||||
SendDateEvent(dt);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user