diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-05-30 20:27:45 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-05-30 20:27:45 +0000 |
| commit | deb71ed76cbb2dadc4abc7cbded13238d3d8463f (patch) | |
| tree | 511c30d3eb2ffb5c40a1e08f8e9dd15997760bb0 /src | |
| parent | Improve auto gap algorithm and move some "magic numbers" pixel setting code i... (diff) | |
| download | inkscape-deb71ed76cbb2dadc4abc7cbded13238d3d8463f.tar.gz inkscape-deb71ed76cbb2dadc4abc7cbded13238d3d8463f.zip | |
Don't return too much snappoints
(bzr r3045)
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp-shape.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp index a0c26e8f5..6dba2afb6 100644 --- a/src/sp-shape.cpp +++ b/src/sp-shape.cpp @@ -1021,6 +1021,11 @@ static void sp_shape_snappoints(SPItem const *item, SnapPointsIter p) /* Use the end points of each segment of the path */ NArtBpath const *bp = SP_CURVE_BPATH(shape->curve); + + if (bp->code == NR_MOVETO) { // Indicates the start of a closed subpath, see nr-path-code.h + bp++; //The first point of a closed path is coincident with the end point. Skip the first point as we need only one + } + while (bp->code != NR_END) { *p = bp->c(3) * i2d; bp++; |
