diff --git a/samples/widgets/gauge.cpp b/samples/widgets/gauge.cpp index c1a7f62d67..d887d13754 100644 --- a/samples/widgets/gauge.cpp +++ b/samples/widgets/gauge.cpp @@ -333,6 +333,7 @@ void GaugeWidgetsPage::OnButtonSetRange(wxCommandEvent& WXUNUSED(event)) if ( !m_textRange->GetValue().ToULong(&val) ) return; + m_range = val; m_gauge->SetRange(val); }