]> git.saurik.com Git - wxWidgets.git/commitdiff
partial aggregate warning fix
authorRyan Norton <wxprojects@comcast.net>
Fri, 24 Sep 2004 21:33:21 +0000 (21:33 +0000)
committerRyan Norton <wxprojects@comcast.net>
Fri, 24 Sep 2004 21:33:21 +0000 (21:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/utils.cpp

index 679bf3d1e5216a2abb355cfb3a811a87acb48c04..cf7d76b624b031ab9fcd4e9f1d2e882d764c5a53 100644 (file)
@@ -1706,7 +1706,9 @@ void  wxMacControl::Convert( wxPoint *pt , wxMacControl *from , wxMacControl *to
 void wxMacControl::SetRect( Rect *r ) 
 {
 #if TARGET_API_MAC_OSX
-    HIRect hir = { r->left , r->top , r->right - r->left , r->bottom - r->top } ;
+       //A HIRect is actually a CGRect on OSX - which consists of two structures -
+       //CGPoint and CGSize, which have two floats each
+    HIRect hir = { { r->left , r->top }, { r->right - r->left , r->bottom - r->top } } ;
     HIViewSetFrame ( m_controlRef , &hir ) ;
 #else
     SetControlBounds( m_controlRef , r ) ;