summaryrefslogtreecommitdiffstats
path: root/src/sp-star.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-02-10 15:22:29 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-02-10 15:22:29 +0000
commit91a070db2c25badec3419bc9e4a50d985c34247a (patch)
treed1e41782fcf1bfe3ea39482e33110424c7dd8c48 /src/sp-star.cpp
parent(Probably) fix a crash in the node tool and fix Ctrl+Alt dragging (diff)
downloadinkscape-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-star.cpp')
-rw-r--r--src/sp-star.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sp-star.cpp b/src/sp-star.cpp
index 6bced87e8..16c71d030 100644
--- a/src/sp-star.cpp
+++ b/src/sp-star.cpp
@@ -493,9 +493,7 @@ sp_star_set_shape (SPShape *shape)
}
// draw last segment
- if (not_rounded) {
- c->lineto(sp_star_get_xy (star, SP_STAR_POINT_KNOT1, 0, true));
- } else {
+ if (!not_rounded) {
if (star->flatsided == false) {
c->curveto(sp_star_get_curvepoint (star, SP_STAR_POINT_KNOT2, sides - 1, NEXT),
sp_star_get_curvepoint (star, SP_STAR_POINT_KNOT1, 0, PREV),