X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6adaedf0fc6607ee5bb4e86358396e5e07c6649f..412e4edfb1174c68fab706abdf735b1ca6fe56f2:/include/wx/generic/spinctlg.h diff --git a/include/wx/generic/spinctlg.h b/include/wx/generic/spinctlg.h index 02d26def7d..f9f01943ce 100644 --- a/include/wx/generic/spinctlg.h +++ b/include/wx/generic/spinctlg.h @@ -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