diff --git a/src/display/curve.h b/src/display/curve.h
index c3659de078d9616a5d9c95ebb2ac3ddd5f7a21a8..8bb3fb36012aed80f0ed327530aa5f6743454734 100644 (file)
--- a/src/display/curve.h
+++ b/src/display/curve.h
#include <2geom/forward.h>
+#include <boost/optional.hpp>
+
class SPCurve {
public:
/* Constructors */
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();