diff --git a/include/wx/propgrid/props.h b/include/wx/propgrid/props.h index 5517f8acd9..ae426977ed 100644 --- a/include/wx/propgrid/props.h +++ b/include/wx/propgrid/props.h @@ -449,7 +449,6 @@ private: // Relies on ValidateValue being called always before OnSetValue static int ms_nextIndex; - static int ms_prevIndex; }; // ----------------------------------------------------------------------- diff --git a/src/propgrid/props.cpp b/src/propgrid/props.cpp index 9014519cee..9726f49682 100644 --- a/src/propgrid/props.cpp +++ b/src/propgrid/props.cpp @@ -963,7 +963,6 @@ wxEnumProperty::~wxEnumProperty () } int wxEnumProperty::ms_nextIndex = -2; -int wxEnumProperty::ms_prevIndex = -1; void wxEnumProperty::OnSetValue() { @@ -1118,13 +1117,11 @@ void wxEnumProperty::OnValidationFailure( wxVariant& WXUNUSED(pendingValue) ) { // Revert index - m_index = ms_prevIndex; ResetNextIndex(); } void wxEnumProperty::SetIndex( int index ) { - ms_prevIndex = m_index; ms_nextIndex = -2; m_index = index; }