]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/spinctlg.h
wxMenu::callback stuff taken inside WXWIN_COMPATIBILITY_2 (everybody should
[wxWidgets.git] / include / wx / generic / spinctlg.h
index 02d26def7d2e8137f2b1cd895f013f4289a64a99..f9f01943ce2df609e756b5a817710f478f9e38a2 100644 (file)
@@ -46,10 +46,11 @@ public:
     {
         SetRange(min, max);
 
     {
         SetRange(min, max);
 
-        bool val = wxTextCtrl::Create(parent, id, value, pos, size, style,
-                                  wxDefaultValidator, name);
+        bool ok = wxTextCtrl::Create(parent, id, value, pos, size, style,
+                                     wxDefaultValidator, name);
         SetValue(initial);
         SetValue(initial);
-        return value;
+
+        return ok;
     }
 
     // accessors
     }
 
     // accessors