diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-09-15 23:07:32 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-09-15 23:07:32 +0000 |
| commit | 0403ae2f0f76e56b31e369160648968671324d13 (patch) | |
| tree | b05668939f7461bca6f65c44177d986e6403386a /src/ui/tool/path-manipulator.cpp | |
| parent | Roughen LPE: cleanup, improvements in code -loop part thanks Nathan-, credits... (diff) | |
| download | inkscape-0403ae2f0f76e56b31e369160648968671324d13.tar.gz inkscape-0403ae2f0f76e56b31e369160648968671324d13.zip | |
fixing cusp node bug on bspline -problems moving nodes because tiny handles
(bzr r13341.1.209)
Diffstat (limited to 'src/ui/tool/path-manipulator.cpp')
| -rw-r--r-- | src/ui/tool/path-manipulator.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp index 5f20aece7..f30ecb1d1 100644 --- a/src/ui/tool/path-manipulator.cpp +++ b/src/ui/tool/path-manipulator.cpp @@ -1227,7 +1227,9 @@ double PathManipulator::BSplineHandlePosition(Handle *h, Handle *h2){ SPCurve *lineInsideNodes = new SPCurve(); lineInsideNodes->moveto(n->position()); lineInsideNodes->lineto(nextNode->position()); - pos = Geom::nearest_point(Geom::Point(h->position()[X] - handleCubicGap,h->position()[Y] - handleCubicGap),*lineInsideNodes->first_segment()); + if(!are_near(h->position(), n->position())){ + pos = Geom::nearest_point(Geom::Point(h->position()[X] ,h->position()[Y] - handleCubicGap),*lineInsideNodes->first_segment()); + } } if (pos == 0.0000 && !h2){ return BSplineHandlePosition(h, h->other()); |
