Use dedicated function to get value from wxPGChoicesData

This commit is contained in:
Artur Wieczorek 2023-12-17 16:11:34 +01:00
parent 63805074df
commit d95074e48d

View file

@ -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;
}
}