Code

return boost::optional for second and penultimate points of SPCurve
[inkscape.git] / src / display / curve.h
index c3659de078d9616a5d9c95ebb2ac3ddd5f7a21a8..8bb3fb36012aed80f0ed327530aa5f6743454734 100644 (file)
@@ -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();