diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-05-18 14:09:46 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-05-18 14:09:46 +0000 |
| commit | e37b51c1e3bc642a4f8618085b649f1cc013e6bb (patch) | |
| tree | b22a2a7ee09dc440f60a4083dae1162bac7c4aad /src/2geom/path.cpp | |
| parent | add SVG Output preferences (diff) | |
| download | inkscape-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.cpp | 10 |
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, |
