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

@@ -565,7 +565,7 @@ void wxPGProperty::InitAfterAdded( wxPropertyGridPageState* pageState,
unsigned char depth = 1;
if ( !parentIsRoot )
{
depth = parent->m_depth;
depth = parent->GetDepth();
if ( !parent->IsCategory() )
depth++;
}
@@ -599,7 +599,7 @@ void wxPGProperty::InitAfterAdded( wxPropertyGridPageState* pageState,
unsigned char depth = 1;
if ( !parentIsRoot )
{
depth = parent->m_depth + 1;
depth = parent->GetDepth() + 1;
}
m_depth = depth;
m_depthBgCol = depth;

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
}