Code

NR::Point : add cast operator to Geom::Point
authorjohanengelen <johanengelen@users.sourceforge.net>
Thu, 17 Jul 2008 21:35:48 +0000 (21:35 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Thu, 17 Jul 2008 21:35:48 +0000 (21:35 +0000)
src/libnr/nr-point.h

index c0810bda13498c43da8c3320b15d2ad79b6156ea..ff9b5a4542f96fa05b9058e28d1e713d4c523c2b 100644 (file)
@@ -130,6 +130,8 @@ public:
         return Geom::Point(_pt[X], _pt[Y]);
     }
 
+    inline operator Geom::Point() const { return Geom::Point(_pt[X], _pt[Y]); }
+
 private:
     Coord _pt[2];
 };