Use dedicated function to check if property is a wxRootProperty
This commit is contained in:
parent
5fb9d8d244
commit
fe924be261
1 changed files with 1 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue