]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/statlmac.cpp
fixed fatal bug when moving the control after itself in tab order
[wxWidgets.git] / src / mac / carbon / statlmac.cpp
index cf9f999fa0e3dd1bf1236a4ab59182e00ed5b0c9..34ca6e86cfda1a9cf5f2dd28aa8c0b2352697d2b 100644 (file)
@@ -57,7 +57,7 @@ bool wxStaticLine::Create( wxWindow *parent,
 
     Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
     m_peer = new wxMacControl() ;
-    verify_noerr(CreateSeparatorControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, *m_peer ) ) ;  
+    verify_noerr(CreateSeparatorControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, m_peer->GetControlRefAddr() ) ) ;  
 
     MacPostControlCreate(pos,size) ;