diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-08-13 18:49:22 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-08-13 18:49:22 +0000 |
| commit | d70f7cc1bada9cd825ee742246f817ca4fdb14cd (patch) | |
| tree | e2f0373f664e81c3f0df1dcffb689e140323d764 /src/display/curve.h | |
| parent | Get rid of sp_nodepath_current() and a few instances of SP_ACTIVE_DESKTOP by ... (diff) | |
| download | inkscape-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.h | 6 |
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(); |
