summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 92d1c77)
raw | patch | inline | side by side (parent: 92d1c77)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sat, 13 Sep 2008 17:22:02 +0000 (17:22 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sat, 13 Sep 2008 17:22:02 +0000 (17:22 +0000) |
src/nodepath.cpp | patch | blob | history |
diff --git a/src/nodepath.cpp b/src/nodepath.cpp
index 2b3ae46fcede878a13c268b1e840ae84607719db..49bf78585b698819e5c944c4a388152f20ffc060 100644 (file)
--- a/src/nodepath.cpp
+++ b/src/nodepath.cpp
@@ -564,7 +564,8 @@ static void subpaths_from_pathvector(Inkscape::NodePath::Path *np, Geom::PathVec
/* Remember that last closing segment is always a lineto, but its length can be zero if the path is visually closed already
* If the length is zero, don't add it to the nodepath. */
Geom::Curve const &closing_seg = pit->back_closed();
- if ( ! closing_seg.isDegenerate() ) {
+// if ( ! closing_seg.isDegenerate() ) {
+ if ( ! are_near(closing_seg.initialPoint(), closing_seg.finalPoint()) ) {
NR::Point pos = closing_seg.finalPoint() * (Geom::Matrix)np->i2d;
sp_nodepath_node_new(sp, NULL, t[i++], NR_LINETO, &pos, &pos, &pos);
}