]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/statlmac.cpp
fix for [ 805216 ] dirMac does not properly skip directories from kevin hock
[wxWidgets.git] / src / mac / carbon / statlmac.cpp
index d13f45e35e26984f5343a7c5def9a0a8ad5bedf5..34ca6e86cfda1a9cf5f2dd28aa8c0b2352697d2b 100644 (file)
@@ -56,7 +56,8 @@ bool wxStaticLine::Create( wxWindow *parent,
         return false;
 
     Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
-    verify_noerr(CreateSeparatorControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, (ControlRef*)&m_macControl ) ) ;  
+    m_peer = new wxMacControl() ;
+    verify_noerr(CreateSeparatorControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, m_peer->GetControlRefAddr() ) ) ;  
 
     MacPostControlCreate(pos,size) ;