Code

Fix funny behavior when dragging near the start node of a path
authorKrzysztof Kosiński <tweenk.pl@gmail.com>
Fri, 13 Aug 2010 21:10:23 +0000 (23:10 +0200)
committerKrzysztof Kosiński <tweenk.pl@gmail.com>
Fri, 13 Aug 2010 21:10:23 +0000 (23:10 +0200)
src/ui/tool/path-manipulator.cpp

index 8ce7a9e74feba0926a099231d6bcf8b03648ed06..f5c27e1d6ea80ac1ea2db289aedcd257a93f135c 100644 (file)
@@ -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);