]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_spin.cpp
Ensure there is valid context for DrawRectangle
[wxWidgets.git] / src / xrc / xh_spin.cpp
index 5684e747770748635eb07304a15a86bdf3948ac5..d9b1f4ef77b69aa0f41fe867b785ce2ecaa0248a 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
 /////////////////////////////////////////////////////////////////////////////
-// Name:        xh_spin.cpp
+// Name:        src/xrc/xh_spin.cpp
 // Purpose:     XRC resource for wxSpinButton
 // Author:      Bob Mitchell
 // Created:     2000/03/21
 // Purpose:     XRC resource for wxSpinButton
 // Author:      Bob Mitchell
 // Created:     2000/03/21
@@ -96,6 +96,10 @@ wxObject *wxSpinCtrlXmlHandler::DoCreateResource()
                     GetLong(wxT("value"), DEFAULT_VALUE),
                     GetName());
 
                     GetLong(wxT("value"), DEFAULT_VALUE),
                     GetName());
 
+    const long base = GetLong(wxS("base"), 10);
+    if ( base != 10 )
+        control->SetBase(base);
+
     SetupWindow(control);
 
     return control;
     SetupWindow(control);
 
     return control;