From c1741cf6779b54e389836a687cbf5926cb9d6a8d Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sat, 20 Sep 2014 19:57:47 +0000 Subject: [PATCH] Use wxPropertyGrid::HasInternalFlag() function to check internal flags. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/propgrid/advprops.cpp | 2 +- src/propgrid/editors.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/propgrid/advprops.cpp b/src/propgrid/advprops.cpp index accb63bcd1..ec53ca7e3a 100644 --- a/src/propgrid/advprops.cpp +++ b/src/propgrid/advprops.cpp @@ -1226,7 +1226,7 @@ bool wxSystemColourProperty::QueryColourFromUser( wxVariant& variant ) const wxASSERT( propgrid ); // Must only occur when user triggers event - if ( !(propgrid->GetInternalFlags() & wxPG_FL_IN_HANDLECUSTOMEDITOREVENT) ) + if ( !propgrid->HasInternalFlag(wxPG_FL_IN_HANDLECUSTOMEDITOREVENT) ) return res; wxColourPropertyValue val = GetVal(); diff --git a/src/propgrid/editors.cpp b/src/propgrid/editors.cpp index ba7e2972aa..d9f23d2459 100644 --- a/src/propgrid/editors.cpp +++ b/src/propgrid/editors.cpp @@ -1640,7 +1640,7 @@ wxPGWindowList wxPGCheckBoxEditor::CreateControls( wxPropertyGrid* propGrid, if ( !property->IsValueUnspecified() ) { - if ( propGrid->GetInternalFlags() & wxPG_FL_ACTIVATION_BY_CLICK ) + if ( propGrid->HasInternalFlag(wxPG_FL_ACTIVATION_BY_CLICK) ) { // Send the event to toggle the value (if mouse cursor is on the item) wxPoint point = cb->ScreenToClient(::wxGetMousePosition());