diff --git a/src/propgrid/property.cpp b/src/propgrid/property.cpp index a1fc39bb20..5c789adc78 100644 --- a/src/propgrid/property.cpp +++ b/src/propgrid/property.cpp @@ -2129,7 +2129,7 @@ void wxPGProperty::RemoveChild( wxPGProperty* p ) { if ( *it == p ) { - m_children.erase(it); + children.erase(it); break; } }