git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40542
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
maxNew = 0; // init to suppress compiler warning
if ( !m_textMin->GetValue().ToLong(&minNew) ||
!m_textMax->GetValue().ToLong(&maxNew) ||
- minNew >= maxNew )
+ minNew > maxNew )
{
wxLogWarning(_T("Invalid min/max values for the spinbtn."));
long mn, mx;
event.Enable( m_textMin->GetValue().ToLong(&mn) &&
m_textMax->GetValue().ToLong(&mx) &&
- mn < mx);
+ mn <= mx);
}
void SpinBtnWidgetsPage::OnUpdateUIResetButton(wxUpdateUIEvent& event)