summaryrefslogtreecommitdiffstats
path: root/src/2geom/path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/2geom/path.cpp')
-rw-r--r--src/2geom/path.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/2geom/path.cpp b/src/2geom/path.cpp
index fdfa77c79..3effa9374 100644
--- a/src/2geom/path.cpp
+++ b/src/2geom/path.cpp
@@ -339,6 +339,16 @@ void Path::append(D2<SBasis> const &curve) {
do_append(new SBasisCurve(curve));
}
+void Path::append(Path const &other)
+{
+ // Check that path stays continuous:
+ if ( !are_near( finalPoint(), other.initialPoint() ) ) {
+ THROW_CONTINUITYERROR();
+ }
+
+ insert(begin(), other.begin(), other.end());
+}
+
void Path::do_update(Sequence::iterator first_replaced,
Sequence::iterator last_replaced,
Sequence::iterator first,