From e37b51c1e3bc642a4f8618085b649f1cc013e6bb Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sun, 18 May 2008 14:09:46 +0000 Subject: update to latest 2geom (bzr r5689) --- src/2geom/path.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/2geom/path.cpp') 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 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, -- cgit v1.2.3