Don't construct invalid wxDateTime in GTK calendar control callbacks.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 17 May 2011 22:12:35 +0000 (22:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 17 May 2011 22:12:35 +0000 (22:12 +0000)
commit8ea26eedce3a50c4021bcf8b971e432d93684de2
treed2a491817bb1260cbbc8a61f7ce27f9e02718cf1
parent473d0f930e0a6e0dd11f2965ef46444e1589ecdb
Don't construct invalid wxDateTime in GTK calendar control callbacks.

GTK+ may momentarily return invalid date when switching the month in the
calendar control. Check for this and adjust the date ourselves to make it
valid if necessary in order to avoid the asserts from wxDateTime ctor.

Closes #13224.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/gtk/calctrl.cpp