diff --git a/src/propgrid/props.cpp b/src/propgrid/props.cpp index 281f38488b..de725c3e33 100644 --- a/src/propgrid/props.cpp +++ b/src/propgrid/props.cpp @@ -1222,7 +1222,7 @@ void wxFlagsProperty::Init() // unsigned int i; - unsigned int prevChildCount = m_children.GetCount(); + unsigned int prevChildCount = m_children.size(); int oldSel = -1; if ( prevChildCount ) @@ -1248,9 +1248,9 @@ void wxFlagsProperty::Init() // Delete old children for ( i=0; i