From: johanengelen Date: Thu, 17 Jul 2008 21:35:48 +0000 (+0000) Subject: NR::Point : add cast operator to Geom::Point X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=740473b3e0afbc395964ac0991cc987f69f7534a;p=inkscape.git NR::Point : add cast operator to Geom::Point --- 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]; };