diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2008-08-15 20:23:54 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2008-08-15 20:23:54 +0000 |
| commit | 303f67444b402faaf8ebf9645de4b4362b31d35c (patch) | |
| tree | d9e8550b6e4021a05d966690d4e02ec239b8784b /src/2geom/path.h | |
| parent | Eliminate more of SP_ACTIVE_DESKTOP (diff) | |
| download | inkscape-303f67444b402faaf8ebf9645de4b4362b31d35c.tar.gz inkscape-303f67444b402faaf8ebf9645de4b4362b31d35c.zip | |
Update to 2geom rev. 1538
(bzr r6634)
Diffstat (limited to 'src/2geom/path.h')
| -rw-r--r-- | src/2geom/path.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/2geom/path.h b/src/2geom/path.h index f4aa560ff..97c4ce2bd 100644 --- a/src/2geom/path.h +++ b/src/2geom/path.h @@ -254,7 +254,7 @@ public: size_type max_size() const { return get_curves().max_size()-1; } - bool empty() const { return get_curves().size() == 1; } + bool empty() const { return closed() || (get_curves().size() == 1); } bool closed() const { return closed_; } void close(bool closed=true) { closed_ = closed; } @@ -363,6 +363,8 @@ public: return allNearestPoints(_point, 0, sz); } + std::vector<double> + nearestPointPerCurve(Point const& _point) const; double nearestPoint(Point const& _point, double from, double to, double *distance_squared = NULL) const; |
