From d3d30643987ffc677ab933d2c47f86d43a30638b Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sun, 7 Sep 2008 18:31:24 +0200 Subject: callback after remove_point --- src/CurveEditor.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; -- cgit v1.2.3