summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3f971d7)
raw | patch | inline | side by side (parent: 3f971d7)
author | Krzysztof Kosiński <tweenk.pl@gmail.com> | |
Wed, 10 Feb 2010 15:22:29 +0000 (16:22 +0100) | ||
committer | Krzysztof Kosiński <tweenk.pl@gmail.com> | |
Wed, 10 Feb 2010 15:22:29 +0000 (16:22 +0100) |
a rectangle, star or polygon to a path.
src/sp-rect.cpp | patch | blob | history | |
src/sp-star.cpp | patch | blob | history |
diff --git a/src/sp-rect.cpp b/src/sp-rect.cpp
index d42fd0e9f3d30b74b0320b03e9e122b98dc3f58b..bdfae7c99905e315c36fd002d4bcc3e934bc3d2f 100644 (file)
--- a/src/sp-rect.cpp
+++ b/src/sp-rect.cpp
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();
}
diff --git a/src/sp-star.cpp b/src/sp-star.cpp
index 6bced87e8a7aa4d5a2510daf14f40da2f801a3f3..16c71d030105f81d6efa379cfc24ce438cd13717 100644 (file)
--- a/src/sp-star.cpp
+++ b/src/sp-star.cpp
}
// 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),