git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59301
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Relies on ValidateValue being called always before OnSetValue
static int ms_nextIndex;
- static int ms_prevIndex;
};
// -----------------------------------------------------------------------
}
int wxEnumProperty::ms_nextIndex = -2;
-int wxEnumProperty::ms_prevIndex = -1;
void wxEnumProperty::OnSetValue()
{
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;
}