Use dedicated function to check if wxPGProperty is of category type
We have a dedicated function for this purpose so there is no need to check the flag directly.
This commit is contained in:
@@ -509,8 +509,8 @@ void wxPGProperty::InitAfterAdded( wxPropertyGridPageState* pageState,
|
|||||||
wxPGCell& cell = m_cells[i];
|
wxPGCell& cell = m_cells[i];
|
||||||
if ( cell.IsInvalid() )
|
if ( cell.IsInvalid() )
|
||||||
{
|
{
|
||||||
cell = HasFlag(wxPG_PROP_CATEGORY) ? propgrid->GetCategoryDefaultCell()
|
cell = IsCategory() ? propgrid->GetCategoryDefaultCell()
|
||||||
: propgrid->GetPropertyDefaultCell();
|
: propgrid->GetPropertyDefaultCell();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1599,8 +1599,8 @@ void wxPGProperty::EnsureCells( unsigned int column )
|
|||||||
|
|
||||||
if ( pg )
|
if ( pg )
|
||||||
{
|
{
|
||||||
defaultCell = HasFlag(wxPG_PROP_CATEGORY) ? pg->GetCategoryDefaultCell()
|
defaultCell = IsCategory() ? pg->GetCategoryDefaultCell()
|
||||||
: pg->GetPropertyDefaultCell();
|
: pg->GetPropertyDefaultCell();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Alloc new default cells.
|
// Alloc new default cells.
|
||||||
|
Reference in New Issue
Block a user