diff --git a/src/propgrid/propgridiface.cpp b/src/propgrid/propgridiface.cpp index e6082b7765..f0c24fe020 100644 --- a/src/propgrid/propgridiface.cpp +++ b/src/propgrid/propgridiface.cpp @@ -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); } // ----------------------------------------------------------------------------