From b894ea1ce32935371ca699adfee1552b36975e57 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Fri, 12 Oct 2018 22:32:07 +0200 Subject: [PATCH] Use dedicated function to check wxPGProperty flag --- src/propgrid/propgrid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index 0bd991cabc..0d1ff356e6 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -3677,7 +3677,7 @@ bool wxPropertyGrid::HandleCustomEditorEvent( wxEvent &event ) // SetValueInEvent(), as called in one of the functions referred above // overrides editor's value. - if ( m_iFlags & wxPG_FL_VALUE_CHANGE_IN_EVENT ) + if ( WasValueChangedInEvent() ) { valueIsPending = true; pendingValue = m_changeInEventValue;