]> 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 01b0a057b0cd2d109ecb4ad276246628dde74c79..d9b1f4ef77b69aa0f41fe867b785ce2ecaa0248a 100644 (file)
@@ -96,6 +96,10 @@ wxObject *wxSpinCtrlXmlHandler::DoCreateResource()
                     GetLong(wxT("value"), DEFAULT_VALUE),
                     GetName());
 
+    const long base = GetLong(wxS("base"), 10);
+    if ( base != 10 )
+        control->SetBase(base);
+
     SetupWindow(control);
 
     return control;