Fixed searching the elements in wxArrayPGProperty.

Use dedicated Index() function to search elements in wxArray instead of calling custom function.
This commit is contained in:
Artur Wieczorek
2015-07-20 21:50:30 +02:00
parent fb61cbd411
commit e0f5b49a07
4 changed files with 17 additions and 18 deletions

View File

@@ -1355,10 +1355,7 @@ bool wxPropertyGridPageState::DoSetPropertyValueWxObjectPtr( wxPGProperty* p, wx
bool wxPropertyGridPageState::DoIsPropertySelected( wxPGProperty* prop ) const
{
if ( wxPGFindInVector(m_selection, prop) != wxNOT_FOUND )
return true;
return false;
return m_selection.Index(prop) != wxNOT_FOUND;
}
// -----------------------------------------------------------------------