]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_gauge.cpp
Merge in from trunk r68626 - r68683
[wxWidgets.git] / src / xrc / xh_gauge.cpp
index 9d63af74d0e6f70406d0ba6608e999f4bda58a24..99ce99a3637530936c2708365459f0638e2cce01 100644 (file)
@@ -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,