Search through all properties in wxPG::GetPropertyByLabel.

Function should search for given label through all properties. This is consistent with searching by name (in GetPropertyByName) which is not limited to the subset of properties.

Closes #15251.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Artur Wieczorek
2014-07-14 17:35:59 +00:00
parent 1a2983d433
commit bf01f0e791

View File

@@ -441,15 +441,7 @@ wxPGProperty* wxPropertyGridInterface::GetPropertyByNameA( const wxString& name
wxPGProperty* wxPropertyGridInterface::GetPropertyByLabel( const wxString& label ) const
{
wxPGVIterator it;
for ( it = GetVIterator( wxPG_ITERATE_PROPERTIES ); !it.AtEnd(); it.Next() )
{
if ( it.GetProperty()->GetLabel() == label )
return it.GetProperty();
}
return wxNullProperty;
return m_pState->BaseGetPropertyByLabel(label, NULL);
}
// ----------------------------------------------------------------------------