diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-02-07 02:20:50 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-02-07 02:20:50 +0000 |
| commit | 1393823719e4fa4377e9f71f29dae608c89222fe (patch) | |
| tree | 7b92dde9946e00624e1e92182afa0c45faa6a63a /src/2geom/path.cpp | |
| parent | Fix FD leak in buildtool.cpp (diff) | |
| download | inkscape-1393823719e4fa4377e9f71f29dae608c89222fe.tar.gz inkscape-1393823719e4fa4377e9f71f29dae608c89222fe.zip | |
Revert fix for 515237 which introduces a catastrophic bug
(bzr r9064)
Diffstat (limited to 'src/2geom/path.cpp')
| -rw-r--r-- | src/2geom/path.cpp | 13 |
1 files 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<Curve*>((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() ) { |
