From: johanengelen Date: Wed, 18 Jun 2008 22:40:29 +0000 (+0000) Subject: update 2geom X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6b88a317431a0e35e36b333e4d14049246949e43;p=inkscape.git update 2geom --- diff --git a/src/2geom/path.h b/src/2geom/path.h index 719a66478..5f2c86b95 100644 --- a/src/2geom/path.h +++ b/src/2geom/path.h @@ -137,7 +137,7 @@ private: * * The only difference between a closed and an open path is whether end() * returns end_closed() or end_open(). The idea behind this is to let - * any path be stroked using [begin(), end()), and filled using + * any path be stroked using [begin(), end_default()), and filled using * [begin(), end_closed()), without requiring a separate "filled" version * of the path to use for filling. */ @@ -196,6 +196,11 @@ public: Curve const &front() const { return *curves_[0]; } Curve const &back() const { return *curves_[curves_.size()-2]; } + Curve const &back_open() const { return *curves_[curves_.size()-2]; } + Curve const &back_closed() const { return *curves_[curves_.size()-1]; } + Curve const &back_default() const { + return ( closed_ ? back_closed() : back_open() ); + } const_iterator begin() const { return curves_.begin(); } const_iterator end() const { return curves_.end()-1; }