diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-06-18 22:40:29 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-06-18 22:40:29 +0000 |
| commit | 75fca90da82c529f79b4237d85928d199ba4ed77 (patch) | |
| tree | d92b82799deff3a3a5155180534b70c3d0554f61 /src | |
| parent | for validation (diff) | |
| download | inkscape-75fca90da82c529f79b4237d85928d199ba4ed77.tar.gz inkscape-75fca90da82c529f79b4237d85928d199ba4ed77.zip | |
update 2geom
(bzr r5998)
Diffstat (limited to 'src')
| -rw-r--r-- | src/2geom/path.h | 7 |
1 files changed, 6 insertions, 1 deletions
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; } |
