]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/spinbutt.cpp
fix for always terminating intermediate UniChar String for 4 bytes wchar_t
[wxWidgets.git] / src / mac / spinbutt.cpp
index 57a2a4a0d7ac3ada445b31773d88030803a888ea..f8dcca8bd9ad8ab8c3e5a42cb6df012b01bbdd30 100644 (file)
@@ -38,6 +38,10 @@ wxSpinButton::wxSpinButton()
 bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
         long style, const wxString& name)
 {
+    if ( !wxSpinButtonBase::Create(parent, id, pos, size,
+                                   style, wxDefaultValidator, name) )
+        return false;
+
     m_min = 0;
     m_max = 100;