summaryrefslogtreecommitdiffstats
path: root/src/display/curve.h
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-08-13 18:49:22 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-08-13 18:49:22 +0000
commitd70f7cc1bada9cd825ee742246f817ca4fdb14cd (patch)
treee2f0373f664e81c3f0df1dcffb689e140323d764 /src/display/curve.h
parentGet rid of sp_nodepath_current() and a few instances of SP_ACTIVE_DESKTOP by ... (diff)
downloadinkscape-d70f7cc1bada9cd825ee742246f817ca4fdb14cd.tar.gz
inkscape-d70f7cc1bada9cd825ee742246f817ca4fdb14cd.zip
return boost::optional for second and penultimate points of SPCurve
(bzr r6616)
Diffstat (limited to 'src/display/curve.h')
-rw-r--r--src/display/curve.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/display/curve.h b/src/display/curve.h
index c3659de07..8bb3fb360 100644
--- a/src/display/curve.h
+++ b/src/display/curve.h
@@ -20,6 +20,8 @@
#include <2geom/forward.h>
+#include <boost/optional.hpp>
+
class SPCurve {
public:
/* Constructors */
@@ -48,8 +50,8 @@ public:
Geom::Path const * first_path() const;
Geom::Point first_point() const;
Geom::Point last_point() const;
- Geom::Point second_point() const;
- Geom::Point penultimate_point() const;
+ boost::optional<Geom::Point> second_point() const;
+ boost::optional<Geom::Point> penultimate_point() const;
void reset();