Use dedicated function to check if property is a wxRootProperty

This commit is contained in:
Artur Wieczorek
2018-10-12 22:21:28 +02:00
parent 5fb9d8d244
commit fe924be261

View File

@@ -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();