summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/tool/curve-drag-point.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/tool/curve-drag-point.cpp b/src/ui/tool/curve-drag-point.cpp
index 931726275..4e878d07e 100644
--- a/src/ui/tool/curve-drag-point.cpp
+++ b/src/ui/tool/curve-drag-point.cpp
@@ -69,6 +69,7 @@ bool CurveDragPoint::grabbed(GdkEventMotion */*event*/)
void CurveDragPoint::dragged(Geom::Point &new_pos, GdkEventMotion *event)
{
+ if (!first || !first.next()) return;
NodeList::iterator second = first.next();
// special cancel handling - retract handles when if the segment was degenerate