From 2066fee4eb54540e9408478b936227071fd0a243 Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Thu, 18 Jan 2018 22:34:57 +0100 Subject: Don't allow dragging path at cap or line join This avoids a crash as dragging infinitesimally close to the node will cause undefined behavior (and we were actually dragging at the node itself in those two cases). Fixed bug: - https://bugs.launchpad.net/inkscape/+bug/1691406 --- src/ui/tool/path-manipulator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp index f39afb8c4..e7c595893 100644 --- a/src/ui/tool/path-manipulator.cpp +++ b/src/ui/tool/path-manipulator.cpp @@ -1668,6 +1668,7 @@ Geom::Coord PathManipulator::_updateDragPoint(Geom::Point const &evp) double stroke_tolerance = _getStrokeTolerance(); if (first && first.next() && fracpart != 0.0 && + fracpart != 1.0 && dist < stroke_tolerance) { _dragpoint->setVisible(true); -- cgit v1.2.3