X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4e8ff28c5ad0c498ee676a3470e615b6479ba3b..3109d1986881ca784e0c444d60282db139d92bf1:/src/mac/carbon/gauge.cpp diff --git a/src/mac/carbon/gauge.cpp b/src/mac/carbon/gauge.cpp index 9371fb247d..da6aa40dc0 100644 --- a/src/mac/carbon/gauge.cpp +++ b/src/mac/carbon/gauge.cpp @@ -44,7 +44,7 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id, Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ; m_peer = new wxMacControl() ; verify_noerr ( CreateProgressBarControl( MAC_WXHWND(parent->MacGetTopLevelWindowRef()) , &bounds , - GetValue() , 0 , GetRange() , false /* not indeterminate */ , *m_peer ) ); + GetValue() , 0 , GetRange() , false /* not indeterminate */ , m_peer->GetControlRefAddr() ) ); MacPostControlCreate(pos,size) ;