diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-09-13 21:18:32 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-09-13 21:18:32 +0000 |
| commit | 643cc11d6ec0363c9dbbe0ccf52a1eaff65c59e7 (patch) | |
| tree | 52112f8c14e805e414f10fc6ee147eafd57b52b0 /src/nodepath.cpp | |
| parent | More sensible behaviour of the treat-selection-as-group option in align & dis... (diff) | |
| download | inkscape-643cc11d6ec0363c9dbbe0ccf52a1eaff65c59e7.tar.gz inkscape-643cc11d6ec0363c9dbbe0ccf52a1eaff65c59e7.zip | |
fix UI node counting
(bzr r6804)
Diffstat (limited to 'src/nodepath.cpp')
| -rw-r--r-- | src/nodepath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nodepath.cpp b/src/nodepath.cpp index 49bf78585..8e54bf89c 100644 --- a/src/nodepath.cpp +++ b/src/nodepath.cpp @@ -564,7 +564,7 @@ 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() ) { + // Don't use !closing_seg.isDegenerate() as it is too precise, and does not account for floating point rounding probs (LP bug #257289) 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); |
