diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-08-13 21:03:59 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-08-13 21:03:59 +0000 |
| commit | 5a7386ee9ff4f4194f39eff09de423e16229bf84 (patch) | |
| tree | 8859f4eeccc786439a6904f752adbd0fce1241d2 /src/ui/tool/path-manipulator.cpp | |
| parent | Sync to release 0.48 branch (diff) | |
| download | inkscape-5a7386ee9ff4f4194f39eff09de423e16229bf84.tar.gz inkscape-5a7386ee9ff4f4194f39eff09de423e16229bf84.zip | |
Fix node editor crash when dragging near the last node of a path
(bzr r9711)
Diffstat (limited to 'src/ui/tool/path-manipulator.cpp')
| -rw-r--r-- | src/ui/tool/path-manipulator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp index 66f72f379..8ce7a9e74 100644 --- a/src/ui/tool/path-manipulator.cpp +++ b/src/ui/tool/path-manipulator.cpp @@ -1414,7 +1414,7 @@ void PathManipulator::_updateDragPoint(Geom::Point const &evp) NodeList::iterator first = (*spi)->before(pvp->t, &fracpart); double stroke_tolerance = _getStrokeTolerance(); - if (Geom::distance(evp, nearest_point) < stroke_tolerance) { + if (first && first.next() && Geom::distance(evp, nearest_point) < stroke_tolerance) { _dragpoint->setVisible(true); _dragpoint->setPosition(_desktop->w2d(nearest_point)); _dragpoint->setSize(2 * stroke_tolerance); |
