]> git.saurik.com Git - wxWidgets.git/commit
Fix bug when setting an out of range date in wxMSW wxDatePickerCtrl.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 19 Jun 2011 22:46:45 +0000 (22:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 19 Jun 2011 22:46:45 +0000 (22:46 +0000)
commit5f899cbe913d58a2b43d00b83c617518376cbe56
treed8daf69bb1d9f70d3188dedea414dd58965a19ab
parenta5f226861c387b03f64153945f67414c69c213fc
Fix bug when setting an out of range date in wxMSW wxDatePickerCtrl.

The internally stored date value was getting out of sync with the real date in
the control itself when SetValue() was called with a date out of the currently
set range. This resulted in an assert failure and other unpleasantness later.

Fix the bug and add a unit test checking for it (and also with some other
basic wxDatePickerCtrl checks).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
12 files changed:
src/msw/datectrl.cpp
tests/Makefile.in
tests/controls/datepickerctrltest.cpp [new file with mode: 0644]
tests/makefile.bcc
tests/makefile.gcc
tests/makefile.vc
tests/makefile.wat
tests/test.bkl
tests/test_test_gui.dsp
tests/test_vc7_test_gui.vcproj
tests/test_vc8_test_gui.vcproj
tests/test_vc9_test_gui.vcproj