]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/props.cpp
simpler define handling
[wxWidgets.git] / src / propgrid / props.cpp
index 9726f496822b356f5faa8fed4754792ac1a41952..3558201abc1bb67d77bde63f6011dcc1a02d30c4 100644 (file)
@@ -1187,8 +1187,6 @@ WX_PG_IMPLEMENT_PROPERTY_CLASS_PLAIN(wxFlagsProperty,long,TextCtrl)
 
 void wxFlagsProperty::Init()
 {
-    SetParentalType(wxPG_PROP_AGGREGATE);
-
     long value = m_value;
 
     //
@@ -1248,7 +1246,7 @@ void wxFlagsProperty::Init()
             {
                 boolProp = new wxBoolProperty( label, label, child_val );
             }
-            AddChild(boolProp);
+            AddPrivateChild(boolProp);
         }
 
         m_oldChoicesData = m_choices.GetDataPtr();