Use getter/setter methods to get access to wxPGProperty::m_flags.
Use dedicated wxPGProperty::HasFlags, wxPGProperty::SetFlag methods to check or modify wxPGProperty::m_flags member variable. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -259,7 +259,7 @@ bool wxPropertyGridInterface::EnableProperty( wxPGPropArg id, bool enable )
|
||||
|
||||
if ( enable )
|
||||
{
|
||||
if ( !(p->m_flags & wxPG_PROP_DISABLED) )
|
||||
if ( !p->HasFlag(wxPG_PROP_DISABLED) )
|
||||
return false;
|
||||
|
||||
// If active, Set active Editor.
|
||||
@@ -268,7 +268,7 @@ bool wxPropertyGridInterface::EnableProperty( wxPGPropArg id, bool enable )
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( p->m_flags & wxPG_PROP_DISABLED )
|
||||
if ( p->HasFlag(wxPG_PROP_DISABLED) )
|
||||
return false;
|
||||
|
||||
// If active, Disable as active Editor.
|
||||
|
Reference in New Issue
Block a user