diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-07-17 21:35:48 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-07-17 21:35:48 +0000 |
| commit | dad6a2f5e0abf17a96d7f7168c8335e5c0160dd6 (patch) | |
| tree | bc7f1fed2738cf24a9e767a797574ff6a9113fff /src | |
| parent | added boolean ops LPE to the list of translatables (diff) | |
| download | inkscape-dad6a2f5e0abf17a96d7f7168c8335e5c0160dd6.tar.gz inkscape-dad6a2f5e0abf17a96d7f7168c8335e5c0160dd6.zip | |
NR::Point : add cast operator to Geom::Point
(bzr r6338)
Diffstat (limited to 'src')
| -rw-r--r-- | src/libnr/nr-point.h | 2 |
1 files changed, 2 insertions, 0 deletions
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]; }; |
