X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1b7677ee67f9a2e2eb388ebd0d5a012c42cc801..e777bd14b3b3ce4a601fcc0df63d64e3dc75ae8e:/src/osx/choice_osx.cpp diff --git a/src/osx/choice_osx.cpp b/src/osx/choice_osx.cpp index 4bc08e371b..15e6870684 100644 --- a/src/osx/choice_osx.cpp +++ b/src/osx/choice_osx.cpp @@ -169,12 +169,12 @@ void wxChoice::DoClear() // ---------------------------------------------------------------------------- int wxChoice::GetSelection() const { - return m_peer->GetValue() -1; + return m_peer->GetValue(); } void wxChoice::SetSelection( int n ) { - m_peer->SetValue( n ) ; + m_peer->SetValue( n ); } // ---------------------------------------------------------------------------- @@ -230,7 +230,7 @@ void * wxChoice::DoGetItemClientData(unsigned int n) const return (void *)m_datas[n]; } -bool wxChoice::HandleClicked( double timestampsec ) +bool wxChoice::OSXHandleClicked( double timestampsec ) { wxCommandEvent event( wxEVT_COMMAND_CHOICE_SELECTED, m_windowId );