#endif
#ifndef WX_PRECOMP
+ #include "wx/button.h"
+ #include "wx/stattext.h"
+ #include "wx/sizer.h"
#endif // WX_PRECOMP
#include "wx/rearrangectrl.h"
// update the internal state to match the new item state
const int n = event.GetInt();
- const bool checked = IsChecked(n);
- wxASSERT_MSG( (m_order[n] >= 0) == !checked,
- "discrepancy between internal state and GUI" );
-
m_order[n] = ~m_order[n];
+
+ wxASSERT_MSG( (m_order[n] >= 0) == IsChecked(n),
+ "discrepancy between internal state and GUI" );
}
// ============================================================================