diff options
author | Carl Hetherington <carl@carlh.net> | 2012-04-22 23:14:27 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-04-22 23:14:27 +0000 |
commit | b5a9d37cb0f2585d657ad872ad545be0a9de25da (patch) | |
tree | 6ec07afcc70568b4f981f597e0772028381ddfc5 /gtk2_ardour/editor_selection.cc | |
parent | ac1b2a664711ce6e66c1bd37565c8066103a722a (diff) |
Fix toggle selection for control points.
git-svn-id: svn://localhost/ardour2/branches/3.0@12057 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r-- | gtk2_ardour/editor_selection.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index f788ef1f9d..fe93516063 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -314,12 +314,16 @@ Editor::set_selected_track_from_click (bool press, Selection::Operation op, bool } bool -Editor::set_selected_control_point_from_click (Selection::Operation op, bool /*no_remove*/) +Editor::set_selected_control_point_from_click (bool press, Selection::Operation op) { if (!clicked_control_point) { return false; } + if (!press) { + return true; + } + switch (op) { case Selection::Set: selection->set (clicked_control_point); |