X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d2c19f1367399be8d3220fa1c0fcdcb0ff6b6ae..04b2b47a4e817fb32a78316b8b50efd0612509b9:/src/xrc/xh_gauge.cpp 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,