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:
@@ -441,15 +441,7 @@ wxPGProperty* wxPropertyGridInterface::GetPropertyByNameA( const wxString& name
|
|||||||
|
|
||||||
wxPGProperty* wxPropertyGridInterface::GetPropertyByLabel( const wxString& label ) const
|
wxPGProperty* wxPropertyGridInterface::GetPropertyByLabel( const wxString& label ) const
|
||||||
{
|
{
|
||||||
wxPGVIterator it;
|
return m_pState->BaseGetPropertyByLabel(label, NULL);
|
||||||
|
|
||||||
for ( it = GetVIterator( wxPG_ITERATE_PROPERTIES ); !it.AtEnd(); it.Next() )
|
|
||||||
{
|
|
||||||
if ( it.GetProperty()->GetLabel() == label )
|
|
||||||
return it.GetProperty();
|
|
||||||
}
|
|
||||||
|
|
||||||
return wxNullProperty;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user