From 740473b3e0afbc395964ac0991cc987f69f7534a Mon Sep 17 00:00:00 2001 From: johanengelen Date: Thu, 17 Jul 2008 21:35:48 +0000 Subject: [PATCH] NR::Point : add cast operator to Geom::Point --- src/libnr/nr-point.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libnr/nr-point.h b/src/libnr/nr-point.h index c0810bda1..ff9b5a454 100644 --- a/src/libnr/nr-point.h +++ b/src/libnr/nr-point.h @@ -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]; }; -- 2.30.2