diff --git a/src/generic/spinctlg.cpp b/src/generic/spinctlg.cpp index f48ff32c2d..a5c87a93b7 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); }