summaryrefslogtreecommitdiffstats
path: root/src/2geom/path.h
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2008-08-15 20:23:54 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2008-08-15 20:23:54 +0000
commit303f67444b402faaf8ebf9645de4b4362b31d35c (patch)
treed9e8550b6e4021a05d966690d4e02ec239b8784b /src/2geom/path.h
parentEliminate more of SP_ACTIVE_DESKTOP (diff)
downloadinkscape-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.h4
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;