fixes #10358
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -36,7 +36,7 @@ public :
|
|||||||
wxMacControl::SetValue( v + 1 );
|
wxMacControl::SetValue( v + 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
wxInt32 GetValue()
|
wxInt32 GetValue() const
|
||||||
{
|
{
|
||||||
return wxMacControl::GetValue() - 1;
|
return wxMacControl::GetValue() - 1;
|
||||||
}
|
}
|
||||||
|
@@ -169,12 +169,12 @@ void wxChoice::DoClear()
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
int wxChoice::GetSelection() const
|
int wxChoice::GetSelection() const
|
||||||
{
|
{
|
||||||
return m_peer->GetValue() -1;
|
return m_peer->GetValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxChoice::SetSelection( int n )
|
void wxChoice::SetSelection( int n )
|
||||||
{
|
{
|
||||||
m_peer->SetValue( n ) ;
|
m_peer->SetValue( n );
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user