From aaf37267a8d038f61f06c4a12d16bf3df38fc3be Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 10 Jan 2009 21:05:07 +0000 Subject: [PATCH] fixes #10358 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/carbon/choice.cpp | 2 +- src/osx/choice_osx.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 ); } // ---------------------------------------------------------------------------- -- 2.45.2