summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-09-07 18:31:24 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-09-07 18:31:24 +0200
commitd3d30643987ffc677ab933d2c47f86d43a30638b (patch)
tree187c0cd679e38e1697280c3eec6aca2ab9ac9aeb /src
parent23e183dbfa08a06a0ab73b17f002dce3a97fde15 (diff)
callback after remove_point
Diffstat (limited to 'src')
-rw-r--r--src/CurveEditor.cxx2
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;