diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-02-10 15:22:29 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-02-10 15:22:29 +0000 |
| commit | 91a070db2c25badec3419bc9e4a50d985c34247a (patch) | |
| tree | d1e41782fcf1bfe3ea39482e33110424c7dd8c48 /src/sp-rect.cpp | |
| parent | (Probably) fix a crash in the node tool and fix Ctrl+Alt dragging (diff) | |
| download | inkscape-91a070db2c25badec3419bc9e4a50d985c34247a.tar.gz inkscape-91a070db2c25badec3419bc9e4a50d985c34247a.zip | |
Prevent a redundant closing line segment being added when converting
a rectangle, star or polygon to a path.
(bzr r9076)
Diffstat (limited to 'src/sp-rect.cpp')
| -rw-r--r-- | src/sp-rect.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sp-rect.cpp b/src/sp-rect.cpp index d42fd0e9f..bdfae7c99 100644 --- a/src/sp-rect.cpp +++ b/src/sp-rect.cpp @@ -278,10 +278,9 @@ sp_rect_set_shape(SPShape *shape) c->lineto(x + w, y + 0.0); c->lineto(x + w, y + h); c->lineto(x + 0.0, y + h); - c->lineto(x + 0.0, y + 0.0); } - c->closepath_current(); + c->closepath(); sp_shape_set_curve_insync(SP_SHAPE(rect), c, TRUE); c->unref(); } |
