// ----------------------------------------------------------------------------
int wxChoice::GetSelection() const
{
- return m_peer->GetValue() ;
+ return m_peer->GetValue() -1;
}
void wxChoice::SetSelection( int n )
event.SetInt( n );
event.SetString( GetStringSelection() );
event.SetEventObject( this );
-
+
if ( HasClientObjectData() )
event.SetClientObject( GetClientObject( n ) );
else if ( HasClientUntypedData() )