diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-09-07 18:31:24 +0200 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-09-07 18:31:24 +0200 |
| commit | d3d30643987ffc677ab933d2c47f86d43a30638b (patch) | |
| tree | 187c0cd679e38e1697280c3eec6aca2ab9ac9aeb | |
| parent | 23e183dbfa08a06a0ab73b17f002dce3a97fde15 (diff) | |
callback after remove_point
| -rw-r--r-- | src/CurveEditor.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CurveEditor.cxx b/src/CurveEditor.cxx index ec8fc25..b2db446 100644 --- a/src/CurveEditor.cxx +++ b/src/CurveEditor.cxx @@ -87,6 +87,8 @@ CurveEditor::handle(int event) { marked_point < n - 1 && mark_x >= X[marked_point + 1]) { remove_point(marked_point); marked_point = -1; + if (cb) + cb(this, cb_data); } else move_point(marked_point, mark_x, mark_y); return 1; |
