]> git.saurik.com Git - wxWidgets.git/commitdiff
fixes #10358
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 10 Jan 2009 21:05:07 +0000 (21:05 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 10 Jan 2009 21:05:07 +0000 (21:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/choice.cpp
src/osx/choice_osx.cpp

index 00eb309d38a003469133c1884f4eb59c7236fbbc..182d21f3e16ee09511f2c7f73342234f5363d64f 100644 (file)
@@ -36,7 +36,7 @@ public :
         wxMacControl::SetValue( v + 1 );
     }
     
-    wxInt32 GetValue()
+    wxInt32 GetValue() const
     {
         return wxMacControl::GetValue() - 1;
     }
index 4bc08e371bfb81f05d3bf851384f33b1093f12b7..f871ed3d262d0aa5fc65973c7f072d71af69a929 100644 (file)
@@ -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 );
 }
 
 // ----------------------------------------------------------------------------