diff options
| author | Jabiertxof <jtx@jtx> | 2016-12-06 20:48:14 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx> | 2016-12-06 20:48:14 +0000 |
| commit | dcb86798cf8409035c632b6c429bc8b2f9ea84d3 (patch) | |
| tree | f4b76f1c12b94b8704bf4c76620a093a4a42c62b /src/display | |
| parent | Update to trunk (diff) | |
| parent | Fixes for measure LPE and speed path based LPE operations (diff) | |
| download | inkscape-dcb86798cf8409035c632b6c429bc8b2f9ea84d3.tar.gz inkscape-dcb86798cf8409035c632b6c429bc8b2f9ea84d3.zip | |
Update to trunk
(bzr r15295.1.8)
Diffstat (limited to 'src/display')
| -rw-r--r-- | src/display/curve.cpp | 14 | ||||
| -rw-r--r-- | src/display/curve.h | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/display/curve.cpp b/src/display/curve.cpp index 1998e9bec..6e662b17b 100644 --- a/src/display/curve.cpp +++ b/src/display/curve.cpp @@ -335,6 +335,20 @@ SPCurve::is_closed() const } /** + * True if both curves are equal + */ +bool +SPCurve::is_equal(SPCurve * other) const +{ + if(other == NULL) { + return false; + } else if(_pathv == other->get_pathvector()){ + return true; + } + return false; +} + +/** * Return last pathsegment (possibly the closing path segment) of the last path in PathVector or NULL. * If the last path is empty (contains only a moveto), the function returns NULL */ diff --git a/src/display/curve.h b/src/display/curve.h index 72e6df95c..8375e1105 100644 --- a/src/display/curve.h +++ b/src/display/curve.h @@ -45,6 +45,7 @@ public: bool is_empty() const; bool is_unset() const; bool is_closed() const; + bool is_equal(SPCurve * other) const; Geom::Curve const * last_segment() const; Geom::Path const * last_path() const; Geom::Curve const * first_segment() const; |
