From: Robert Roebling Date: Thu, 10 Jun 2010 11:53:32 +0000 (+0000) Subject: Suppress warning about double->int conversion X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fb0165dfff532675588bff0e7235417771cd45bc Suppress warning about double->int conversion git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/gdicmn.h b/include/wx/gdicmn.h index 1c3601f86c..a72fc76e27 100644 --- a/include/wx/gdicmn.h +++ b/include/wx/gdicmn.h @@ -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