Fix assert on wxCalendarCtrl creation under Windows 7.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 26 Feb 2010 14:09:58 +0000 (14:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 26 Feb 2010 14:09:58 +0000 (14:09 +0000)
commit6331afb0534f4bbb5160c8c4008516741a469842
tree27fe191451b924d4a80360b9220239c4b67b7a9d
parent6df26ddbf7eb563e66bee2313e71d1c0241b351a
Fix assert on wxCalendarCtrl creation under Windows 7.

Unlike previous versions of Windows, 7 includes the time component in the
return value of MonthCal_GetCurSel() and because of it the comparison with
m_date (which doesn't have any time part) fails.

Fix this by comparing just the date parts of the two wxDateTime objects.

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