#include <wx/propgrid/propgrid.h>
#include <wx/propgrid/editors.h>
+#include <typeinfo>
#define wxPG_DEFAULT_SPLITTERX 110
if ( pwc->GetFlags() & itemExMask )
{
wxPropertyGridIterator it( this, flags, pwc );
- for ( ; !it.AtEnd(); it.Prev() );
+ for ( ; !it.AtEnd(); it.Prev() )
+ ;
pwc = (wxPGProperty*) it.GetProperty();
}
if ( scheduledParent == m_properties )
scheduledParent = (wxPGProperty*) NULL;
+ if ( scheduledParent && !scheduledParent->IsCategory() )
+ {
+ wxASSERT_MSG( property->GetBaseName().length(),
+ "Property's children must have unique, non-empty names within their scope" );
+ }
+
property->m_parentState = this;
if ( property->IsCategory() )