summaryrefslogtreecommitdiff
path: root/src/CurveEditor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/CurveEditor.cxx')
-rw-r--r--src/CurveEditor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CurveEditor.cxx b/src/CurveEditor.cxx
index b095d3d..7d8da1d 100644
--- a/src/CurveEditor.cxx
+++ b/src/CurveEditor.cxx
@@ -86,7 +86,7 @@ CurveEditor::handle(int event) {
case FL_DRAG:
if (marked_point < 0)
return 1;
- if (n >= 3 &&
+ if (n > 3 &&
(marked_point > 0 && mark_x <= X[marked_point - 1] ||
marked_point < n - 1 && mark_x >= X[marked_point + 1])) {
remove_point(marked_point);