From 2f5292c3df689f4695012630439a648aee2956ee Mon Sep 17 00:00:00 2001
From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Mon, 8 Nov 1999 18:38:56 +0000
Subject: [PATCH] compilation fix for Motif

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 include/wx/generic/spinctlg.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

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
-- 
2.47.2