From f3b367626a4000cd8161a408f81eebfc7925e984 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Krzysztof=20Kosi=C5=84ski?= Date: Sun, 7 Feb 2010 03:20:50 +0100 Subject: [PATCH] Revert fix for 515237 which introduces a catastrophic bug --- src/2geom/path.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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() ) { -- 2.30.2