]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/spinbutt.cpp
fix for opening files with VC++ 8 (closes bug 994337)
[wxWidgets.git] / src / motif / spinbutt.cpp
index 426310515628c08c718902f8f1ddfde093d61c9d..ca3a6e2af18c5a8c9a88908e8711331dc89b4d2d 100644 (file)
@@ -9,10 +9,13 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "spinbutt.h"
 #endif
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 #include "wx/spinbutt.h"
 #include "wx/spinctrl.h"
 #include "wx/timer.h"
@@ -274,8 +277,6 @@ bool wxSpinButton::Create( wxWindow *parent, wxWindowID id,
 
     SetName(name);
 
-    InitBase();
-
     m_windowId = ( id == -1 ) ? NewControlId() : id;
 
     bool isVert = IsVertical();