summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-09-09 19:02:07 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-09-09 19:02:07 +0200
commit35654f62fe19b69225be9bcfc6763f255b411027 (patch)
tree445d353736efcd91d3d8df8649ca01649e58ff87 /src
parentf285f18f29335bd8f604a875cd4e091bde4bb6e8 (diff)
ensure 3 control points
Diffstat (limited to 'src')
-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);