summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_line.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2015-10-05 02:56:56 +1100
committernick_m <mainsbridge@gmail.com>2015-10-20 00:53:29 +1100
commitbe1396d06626c12c7da85dcd076c8959fd2ccd24 (patch)
treea101461a4df2230b91d99a624ff388b546735fdc /gtk2_ardour/automation_line.cc
parent070c67bdcccd3eaed0d12f7ea9e71f3398e0a6ff (diff)
Select the control point about to be deleted when using shift + right click.
- fixes incorrect selection changes when doing this.
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r--gtk2_ardour/automation_line.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc
index cb59e6d571..72cf283ff4 100644
--- a/gtk2_ardour/automation_line.cc
+++ b/gtk2_ardour/automation_line.cc
@@ -882,6 +882,7 @@ AutomationLine::remove_point (ControlPoint& cp)
trackview.editor().begin_reversible_command (_("remove control point"));
XMLNode &before = alist->get_state();
+ trackview.editor ().get_selection ().clear_points ();
alist->erase (cp.model());
trackview.editor().session()->add_command(