diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-02-10 15:46:07 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-02-10 15:46:07 +0000 |
| commit | 284ace6bc2e5a01cf7d1c4383278b3b9a45b4c79 (patch) | |
| tree | 6fc73eac85532d3afd4e3a8cb0a42a0ecaf61a82 /src | |
| parent | Updated Ukrainian translation by Yuri Chornoivan (diff) | |
| download | inkscape-284ace6bc2e5a01cf7d1c4383278b3b9a45b4c79.tar.gz inkscape-284ace6bc2e5a01cf7d1c4383278b3b9a45b4c79.zip | |
Prevent the Bezier tool from introducing a redundant closing line segment
when closing a path.
(bzr r9079)
Diffstat (limited to 'src')
| -rw-r--r-- | src/display/curve.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/display/curve.cpp b/src/display/curve.cpp index 7d7dbc987..7c3c3d480 100644 --- a/src/display/curve.cpp +++ b/src/display/curve.cpp @@ -285,7 +285,11 @@ SPCurve::closepath() void SPCurve::closepath_current() { - _pathv.back().setFinal(_pathv.back().initialPoint()); + if (_pathv.back().size() > 0 && dynamic_cast<Geom::LineSegment const *>(&_pathv.back().back_open())) { + _pathv.back().erase_last(); + } else { + _pathv.back().setFinal(_pathv.back().initialPoint()); + } _pathv.back().close(true); } |
