summaryrefslogtreecommitdiffstats
path: root/src/2geom/path.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-05-18 14:09:46 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-05-18 14:09:46 +0000
commite37b51c1e3bc642a4f8618085b649f1cc013e6bb (patch)
treeb22a2a7ee09dc440f60a4083dae1162bac7c4aad /src/2geom/path.cpp
parentadd SVG Output preferences (diff)
downloadinkscape-e37b51c1e3bc642a4f8618085b649f1cc013e6bb.tar.gz
inkscape-e37b51c1e3bc642a4f8618085b649f1cc013e6bb.zip
update to latest 2geom
(bzr r5689)
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,