git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2009-01-10 21:05:07 +00:00
parent fc7ba044ac
commit aaf37267a8
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ public :
wxMacControl::SetValue( v + 1 );
}
wxInt32 GetValue()
wxInt32 GetValue() const
{
return wxMacControl::GetValue() - 1;
}

View 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 );
}
// ----------------------------------------------------------------------------