diff --git a/src/osx/carbon/choice.cpp b/src/osx/carbon/choice.cpp index 00eb309d38..182d21f3e1 100644 --- a/src/osx/carbon/choice.cpp +++ b/src/osx/carbon/choice.cpp @@ -36,7 +36,7 @@ public : wxMacControl::SetValue( v + 1 ); } - wxInt32 GetValue() + wxInt32 GetValue() const { return wxMacControl::GetValue() - 1; } diff --git a/src/osx/choice_osx.cpp b/src/osx/choice_osx.cpp index 4bc08e371b..f871ed3d26 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 ); } // ----------------------------------------------------------------------------