Use dedicated function to get value from wxPGChoicesData
This commit is contained in:
parent
63805074df
commit
d95074e48d
1 changed files with 1 additions and 2 deletions
|
|
@ -3086,8 +3086,7 @@ int wxPGChoices::Index( int val ) const
|
|||
{
|
||||
for ( unsigned int i = 0; i < m_data->GetCount(); i++ )
|
||||
{
|
||||
const wxPGChoiceEntry& entry = m_data->Item(i);
|
||||
if ( entry.GetValue() == val )
|
||||
if ( GetValue(i) == val )
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue