]> git.saurik.com Git - wxWidgets.git/commitdiff
Suppress warning about double->int conversion
authorRobert Roebling <robert@roebling.de>
Thu, 10 Jun 2010 11:53:32 +0000 (11:53 +0000)
committerRobert Roebling <robert@roebling.de>
Thu, 10 Jun 2010 11:53:32 +0000 (11:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gdicmn.h

index 1c3601f86ce5c0de1adb767a38474b8841e3a812..a72fc76e272f0d86a33e3dd240e4928b38db9ebc 100644 (file)
@@ -512,7 +512,7 @@ public:
 
     wxPoint() : x(0), y(0) { }
     wxPoint(int xx, int yy) : x(xx), y(yy) { }
-    wxPoint(const wxRealPoint& pt) : x(pt.x), y(pt.y) { }
+    wxPoint(const wxRealPoint& pt) : x(int(pt.x)), y(int(pt.y)) { }
 
     // no copy ctor or assignment operator - the defaults are ok