]> git.saurik.com Git - wxWidgets.git/commit
Keep displayed month and year in sync in wxGenericCalendarCtrl.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Oct 2010 22:40:41 +0000 (22:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Oct 2010 22:40:41 +0000 (22:40 +0000)
commit3c9863aca7b164a3fa3fcb61af9f0fbdf30e08f2
tree2427dfbe5709e3a41c3a81f1113559cb464e248f
parent69060f4f0c6a35cd4e8c031794f7c78c59712539
Keep displayed month and year in sync in wxGenericCalendarCtrl.

When the date was constrained to a range in wxGenericCalendarCtrl, the display
of the month in the month combobox could get out of sync with its real value.

Ensure that the correct month is always displayed and also simplify the code
by removing the apparently unnecessarily complex logic in ChangeYear() and
ChangeMonth() functions.

Closes #11060.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/generic/calctrlg.h
src/generic/calctrlg.cpp