From: Dimitri Schoolwerth Date: Tue, 13 Jan 2004 17:46:13 +0000 (+0000) Subject: Applied patch #876228: "Current value" always counts up to 100, instead of the max... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/efb349e4f321856db92535f05d92ac7e24d49124 Applied patch #876228: "Current value" always counts up to 100, instead of the max gauge value. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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); }