]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/gdicmn.cpp
Increase interoperability between wxPoint and wxRealPoint introducing constructors...
[wxWidgets.git] / src / common / gdicmn.cpp
index 06117b98c239c3f16c74c0f5f21a9f6c57fe3125..f2522192b7f12d8925f5511dec11513d8f2f1615 100644 (file)
@@ -252,6 +252,11 @@ wxRect operator*(const wxRect& r1, const wxRect& r2)
     return wxRect(x1, y1, x2-x1, y2-y1);
 }
 
+wxRealPoint::wxRealPoint(const wxPoint& pt)
+ : x(pt.x), y(pt.y) 
+{
+}
+
 // ============================================================================
 // wxColourDatabase
 // ============================================================================