diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-08-13 21:10:23 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-08-13 21:10:23 +0000 |
| commit | 371f36456524bc0890df5594472b880c8e8828a2 (patch) | |
| tree | 52393bea48f3b72c74f477b559a3a808f422da3c | |
| parent | Fix node editor crash when dragging near the last node of a path (diff) | |
| download | inkscape-371f36456524bc0890df5594472b880c8e8828a2.tar.gz inkscape-371f36456524bc0890df5594472b880c8e8828a2.zip | |
Fix funny behavior when dragging near the start node of a path
(bzr r9712)
| -rw-r--r-- | src/ui/tool/path-manipulator.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp index 8ce7a9e74..f5c27e1d6 100644 --- a/src/ui/tool/path-manipulator.cpp +++ b/src/ui/tool/path-manipulator.cpp @@ -1414,7 +1414,10 @@ void PathManipulator::_updateDragPoint(Geom::Point const &evp) NodeList::iterator first = (*spi)->before(pvp->t, &fracpart); double stroke_tolerance = _getStrokeTolerance(); - if (first && first.next() && Geom::distance(evp, nearest_point) < stroke_tolerance) { + if (first && first.next() && + fracpart != 0.0 && + Geom::distance(evp, nearest_point) < stroke_tolerance) + { _dragpoint->setVisible(true); _dragpoint->setPosition(_desktop->w2d(nearest_point)); _dragpoint->setSize(2 * stroke_tolerance); |
