]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/window_osx.cpp
Use "GBK" as alternative name for CP936 encoding.
[wxWidgets.git] / 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 ;
 }