X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d2c19f1367399be8d3220fa1c0fcdcb0ff6b6ae..5d2be7cc55d83b6e5a7597add2fef248ab3c558f:/src/xrc/xh_gauge.cpp?ds=sidebyside diff --git a/src/xrc/xh_gauge.cpp b/src/xrc/xh_gauge.cpp index 9d63af74d0..99ce99a363 100644 --- a/src/xrc/xh_gauge.cpp +++ b/src/xrc/xh_gauge.cpp @@ -23,6 +23,8 @@ #include "wx/gauge.h" #endif +static const long DEFAULT_RANGE = 100; + IMPLEMENT_DYNAMIC_CLASS(wxGaugeXmlHandler, wxXmlResourceHandler) wxGaugeXmlHandler::wxGaugeXmlHandler() @@ -43,7 +45,7 @@ wxObject *wxGaugeXmlHandler::DoCreateResource() control->Create(m_parentAsWindow, GetID(), - GetLong(wxT("range"), wxGAUGE_DEFAULT_RANGE), + GetLong(wxT("range"), DEFAULT_RANGE), GetPosition(), GetSize(), GetStyle(), wxDefaultValidator,