Don't expose internal wxPropertyGridPageState functions

Functions designed for internal use shouldn't be exposed as public ones
to avoid calling them directly from the user code by mistake.
This commit is contained in:
Artur Wieczorek
2022-05-27 18:37:46 +02:00
parent 92d7176ebe
commit 502ede23ab
4 changed files with 85 additions and 142 deletions

View File

@@ -413,7 +413,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
it.Next() )
{
wxPGProperty* p = it.GetProperty();
if ( (p->GetParent() != p->GetParentState()->DoGetRoot() && !p->GetParent()->IsExpanded()) )
if ( (p->GetParent() != p->GetGrid()->GetRoot() && !p->GetParent()->IsExpanded()) )
RT_FAILURE_MSG(wxString::Format("'%s' had collapsed parent (only visible properties expected)",p->GetLabel()))
else if ( p->HasFlag(wxPG_PROP_HIDDEN) )
RT_FAILURE_MSG(wxString::Format("'%s' was hidden (only visible properties expected)",p->GetLabel()))