]> git.saurik.com Git - wxWidgets.git/commitdiff
fixing c++11 build
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 18 May 2012 09:56:33 +0000 (09:56 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 18 May 2012 09:56:33 +0000 (09:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/window_osx.cpp

index 22bb1ed118155588f256f6572b747a5dc7fe37ec..a164fdea4707f8b088751b388a539b15e537fc91 100644 (file)
@@ -2531,7 +2531,7 @@ Rect wxMacGetBoundsForControl( wxWindowMac* window , const wxPoint& pos , const
     int x, y, w, h ;
 
     window->MacGetBoundsForControl( pos , size , x , y, w, h , adjustForOrigin ) ;
-    Rect bounds = { y, x, y + h, x + w };
+    Rect bounds = { static_cast<short>(y), static_cast<short>(x), static_cast<short>(y + h), static_cast<short>(x + w) };
 
     return bounds ;
 }