Sanity check.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -493,6 +493,12 @@ void SliderWidgetsPage::OnButtonSetMinAndMax(wxCommandEvent& WXUNUSED(event))
|
|||||||
m_max = maxNew;
|
m_max = maxNew;
|
||||||
|
|
||||||
m_slider->SetRange(minNew, maxNew);
|
m_slider->SetRange(minNew, maxNew);
|
||||||
|
|
||||||
|
if ( m_slider->GetMin() != m_min ||
|
||||||
|
m_slider->GetMax() != m_max )
|
||||||
|
{
|
||||||
|
wxLogWarning(_T("Invalid range in slider."));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SliderWidgetsPage::OnButtonSetValue(wxCommandEvent& WXUNUSED(event))
|
void SliderWidgetsPage::OnButtonSetValue(wxCommandEvent& WXUNUSED(event))
|
||||||
|
Reference in New Issue
Block a user