Use dedicated function to check if property is a wxRootProperty
This commit is contained in:
@@ -2608,8 +2608,7 @@ void wxPropertyGrid::DrawItemAndValueRelated( wxPGProperty* p )
|
||||
wxPGProperty* parent = p->GetParent();
|
||||
|
||||
while ( parent &&
|
||||
!parent->IsCategory() &&
|
||||
parent->GetParent() )
|
||||
!parent->IsCategory() && !parent->IsRoot() )
|
||||
{
|
||||
DrawItem(parent);
|
||||
parent = parent->GetParent();
|
||||
|
Reference in New Issue
Block a user