summaryrefslogtreecommitdiffstats
path: root/src/ui/tool/path-manipulator.cpp
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2018-01-18 21:34:57 +0000
committerEduard Braun <eduard.braun2@gmx.de>2018-01-18 21:34:57 +0000
commit2066fee4eb54540e9408478b936227071fd0a243 (patch)
tree3d1b6eecabd4dccf81b5ebf33f7f3aac95efaa20 /src/ui/tool/path-manipulator.cpp
parentReally update style sheet for recent Swatches dialog changes. (diff)
downloadinkscape-2066fee4eb54540e9408478b936227071fd0a243.tar.gz
inkscape-2066fee4eb54540e9408478b936227071fd0a243.zip
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
Diffstat (limited to 'src/ui/tool/path-manipulator.cpp')
-rw-r--r--src/ui/tool/path-manipulator.cpp1
1 files changed, 1 insertions, 0 deletions
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);