summaryrefslogtreecommitdiffstats
path: root/src/nodepath.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-09-13 17:22:02 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-09-13 17:22:02 +0000
commit05ddd097ab3cf81f6f5b49852394004e28f38b49 (patch)
treeafbeceab1b6c41129f2d5a6b977add651f69ed83 /src/nodepath.cpp
parentHide canvas text, too, when lpe-path-length is invisible (diff)
downloadinkscape-05ddd097ab3cf81f6f5b49852394004e28f38b49.tar.gz
inkscape-05ddd097ab3cf81f6f5b49852394004e28f38b49.zip
try to fix bug 257289
(bzr r6802)
Diffstat (limited to 'src/nodepath.cpp')
-rw-r--r--src/nodepath.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nodepath.cpp b/src/nodepath.cpp
index 2b3ae46fc..49bf78585 100644
--- 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);
}