diff --git a/include/wx/propgrid/property.h b/include/wx/propgrid/property.h index 82b5c3bb83..d93595cf0e 100644 --- a/include/wx/propgrid/property.h +++ b/include/wx/propgrid/property.h @@ -1792,8 +1792,7 @@ public: // (i.e. cancel 'true' returned by StringToValue() or IntToValue()). void SetWasModified( bool set = true ) { - if ( set ) m_flags |= wxPG_PROP_WAS_MODIFIED; - else m_flags &= ~wxPG_PROP_WAS_MODIFIED; + ChangeFlag(wxPG_PROP_WAS_MODIFIED, set); } // Returns property's help or description text.