X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/21fd55291b631eae9ccfd78866616aca6e573ebe..5a9b59346b4de5c27d2fa595eaaac5b78dda0bcf:/src/mac/carbon/gauge.cpp diff --git a/src/mac/carbon/gauge.cpp b/src/mac/carbon/gauge.cpp index bfdbe410dc..9c7fc023ae 100644 --- a/src/mac/carbon/gauge.cpp +++ b/src/mac/carbon/gauge.cpp @@ -35,16 +35,16 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id, return false; wxSize size = s ; - - if ( size.x == wxDefaultSize.x && size.y == wxDefaultSize.y) + /* + if ( size.x == wxDefaultCoord && size.y == wxDefaultCoord) { size = wxSize( 200 , 16 ) ; } - + */ 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) ;