]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/spinctlg.h
tried to fix compilation for mingw32 and wxGTK/Motif in the same time
[wxWidgets.git] / include / wx / generic / spinctlg.h
index 02d26def7d2e8137f2b1cd895f013f4289a64a99..f9f01943ce2df609e756b5a817710f478f9e38a2 100644 (file)
@@ -46,10 +46,11 @@ public:
     {
         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);
-        return value;
+
+        return ok;
     }
 
     // accessors