]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/spinbutt.cpp
Fixes
[wxWidgets.git] / src / mac / carbon / spinbutt.cpp
index 35f00904d4c7a757feeceba15ae19196cf20f989..2b432a85a677be49609c05e89c62d3223cd262fb 100644 (file)
@@ -58,7 +58,7 @@ bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, c
 
     Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
 
-    m_peer = new wxMacControl() ;
+    m_peer = new wxMacControl(this) ;
     verify_noerr ( CreateLittleArrowsControl( MAC_WXHWND(parent->MacGetTopLevelWindowRef()) , &bounds , 0 , m_min , m_max , 1 ,
      m_peer->GetControlRefAddr() ) );