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.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/2geom/path.cpp b/src/2geom/path.cpp
index 857028ccd..93def6c55 100644
--- a/src/2geom/path.cpp
+++ b/src/2geom/path.cpp
@@ -347,16 +347,15 @@ void Path::do_update(Sequence::iterator first_replaced,
}
void Path::do_append(Curve *c) {
- boost::shared_ptr<Curve> curve(c);
if ( get_curves().front().get() == final_ ) {
- final_->setPoint(1, curve->initialPoint());
+ final_->setPoint(1, c->initialPoint());
} else {
- if (curve->initialPoint() != finalPoint()) {
+ if (c->initialPoint() != finalPoint()) {
THROW_CONTINUITYERROR();
}
}
- get_curves().insert(get_curves().end()-1, curve);
- final_->setPoint(0, curve->finalPoint());
+ get_curves().insert(get_curves().end()-1, boost::shared_ptr<Curve>(c));
+ final_->setPoint(0, c->finalPoint());
}
void Path::stitch(Sequence::iterator first_replaced,