diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-09-09 19:02:07 +0200 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-09-09 19:02:07 +0200 |
| commit | 35654f62fe19b69225be9bcfc6763f255b411027 (patch) | |
| tree | 445d353736efcd91d3d8df8649ca01649e58ff87 /src | |
| parent | f285f18f29335bd8f604a875cd4e091bde4bb6e8 (diff) | |
ensure 3 control points
Diffstat (limited to 'src')
| -rw-r--r-- | src/CurveEditor.cxx | 2 |
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); |
