summaryrefslogtreecommitdiff
path: root/gtk2_ardour/region_gain_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/region_gain_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/region_gain_line.cc')
-rw-r--r--gtk2_ardour/region_gain_line.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk2_ardour/region_gain_line.cc b/gtk2_ardour/region_gain_line.cc
index 7a748c8749..dc1c14e437 100644
--- a/gtk2_ardour/region_gain_line.cc
+++ b/gtk2_ardour/region_gain_line.cc
@@ -81,6 +81,7 @@ AudioRegionGainLine::remove_point (ControlPoint& cp)
trackview.session()->add_command(new StatefulDiffCommand (rv.audio_region()));
}
+ trackview.editor ().get_selection ().clear_points ();
alist->erase (cp.model());
trackview.editor().session()->add_command (new MementoCommand<AutomationList>(*alist.get(), &before, &alist->get_state()));