Fix adding wxPGProperty to wxPropertyPageState in alphabetical mode
If given wxPGProperty is a subproperty of another property (its parent is neither root nor category) it shouldn't be added directly to the alphabetical list. It should be just added as a child property.
This commit is contained in:
@@ -1705,9 +1705,11 @@ wxPGProperty* wxPropertyGridPageState::DoInsert( wxPGProperty* parent, int index
|
||||
else if ( parentIsRoot )
|
||||
// Parent is root.
|
||||
m_regularArray.DoAddChild( property, -1, false );
|
||||
else
|
||||
parent->DoAddChild(property, index, true);
|
||||
|
||||
// Add to current mode
|
||||
if ( !property->IsCategory() )
|
||||
if ( !property->IsCategory() && (parentIsCategory || parentIsRoot) )
|
||||
m_abcArray->DoAddChild( property, index, true );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user