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