Use wxPGProperty::GetDepth() getter.

Use it instead of getting direct access to the corresponding member variable.
This commit is contained in:
Artur Wieczorek
2015-05-27 21:15:28 +02:00
parent f740e5f784
commit 01cf62684c
2 changed files with 5 additions and 5 deletions

View File

@@ -610,9 +610,9 @@ bool wxPropertyGridPageState::EnableCategories( bool enable )
// then the depth stays the same.
if ( parent->IsCategory() &&
!p->IsCategory() )
p->m_depth = parent->m_depth;
p->m_depth = parent->GetDepth();
else
p->m_depth = parent->m_depth + 1;
p->m_depth = parent->GetDepth() + 1;
ITEM_ITERATION_LOOP_END
@@ -641,7 +641,7 @@ bool wxPropertyGridPageState::EnableCategories( bool enable )
p->m_parent = parent;
p->m_depth = parent->m_depth + 1;
p->m_depth = parent->GetDepth() + 1;
ITEM_ITERATION_LOOP_END
}