diff --git a/docs/changes.txt b/docs/changes.txt index e4fd5de23c..b859d07472 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -679,6 +679,7 @@ wxOSX: - Return false from wxSound::Create()/IsOk() if the file doesn't exist. - Fix scrolling behaviour of wxSearchCtrl (John Roberts). - Add wxTE_{RIGHT,CENTER} support for multiline wxTextCtrl (Andreas Falkenhahn). +- Fix changing year in wxCalendarCtrl using arrows (Lauri Nurmi). 3.0.2: (released 2014-10-06) diff --git a/src/generic/spinctlg.cpp b/src/generic/spinctlg.cpp index 8209a30ae4..e69cdde203 100644 --- a/src/generic/spinctlg.cpp +++ b/src/generic/spinctlg.cpp @@ -96,6 +96,7 @@ public: wxCommandEvent eventCopy(event); eventCopy.SetEventObject(m_spin); eventCopy.SetId(m_spin->GetId()); + eventCopy.SetInt(wxAtoi(event.GetString())); m_spin->ProcessWindowEvent(eventCopy); }