diff options
| author | Jabiertxof <jtx@jtx> | 2016-12-06 20:41:55 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx> | 2016-12-06 20:41:55 +0000 |
| commit | f799b5d6e8278c76326a6fec8da0e017eac342ec (patch) | |
| tree | 91fa98cf037add28f39673d0886317c31c9e6e46 /src/display/curve.cpp | |
| parent | Add dpiswitcher extension and option to scale legacy documents with it. (diff) | |
| download | inkscape-f799b5d6e8278c76326a6fec8da0e017eac342ec.tar.gz inkscape-f799b5d6e8278c76326a6fec8da0e017eac342ec.zip | |
Fixes for measure LPE and speed path based LPE operations
(bzr r15302)
Diffstat (limited to 'src/display/curve.cpp')
| -rw-r--r-- | src/display/curve.cpp | 14 |
1 files changed, 14 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 */ |
