From: Krzysztof KosiƄski Date: Sun, 7 Feb 2010 02:20:50 +0000 (+0100) Subject: Revert fix for 515237 which introduces a catastrophic bug X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f3b367626a4000cd8161a408f81eebfc7925e984;p=inkscape.git Revert fix for 515237 which introduces a catastrophic bug --- diff --git a/src/2geom/path.cpp b/src/2geom/path.cpp index 05a69d616..88c7a99b9 100644 --- a/src/2geom/path.cpp +++ b/src/2geom/path.cpp @@ -89,17 +89,8 @@ Path &Path::operator*=(Matrix const &m) { } prev = (*it)->finalPoint(); } - if (closed_) { - Geom::Point pt = front().initialPoint(); - if (size_open() > 0) { - Curve *l = const_cast((get_curves().end() - 2)->get()); - l->setFinal(pt); - } - final_->setInitial(pt); - final_->setFinal(pt); - } else { - final_->setInitial(back().finalPoint()); - final_->setFinal(front().initialPoint()); + for ( int i = 0 ; i < 2 ; ++i ) { + final_->setPoint(i, (*final_)[i] * m); } if (get_curves().size() > 1) { if ( front().initialPoint() != initialPoint() || back().finalPoint() != finalPoint() ) {