diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-02-19 12:54:00 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-02-19 13:22:52 -0500 |
commit | 1d82f4ca07a38342e0815cd6b695b96d72386f39 (patch) | |
tree | f45246a705af6e11a9eccc5550e42356356f1d52 /gtk2_ardour/editor_mouse.cc | |
parent | d8b3e2932f4acc410ddd5048a0d20f54748c5fa9 (diff) |
ctrl-click when adding automation points no longer adds guard points
Diffstat (limited to 'gtk2_ardour/editor_mouse.cc')
-rw-r--r-- | gtk2_ardour/editor_mouse.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index 7f90fe2d0f..9e19578ce7 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -1682,7 +1682,8 @@ Editor::button_release_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemT case AutomationTrackItem: atv = dynamic_cast<AutomationTimeAxisView*>(clicked_axisview); if (atv) { - atv->add_automation_event (event, where, event->button.y); + bool with_guard_points = !Keyboard::modifier_state_equals (event->button.state, Keyboard::PrimaryModifier); + atv->add_automation_event (event, where, event->button.y, with_guard_points); } return true; break; @@ -1707,11 +1708,13 @@ Editor::button_release_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemT break; } - case AutomationTrackItem: + case AutomationTrackItem: { + bool with_guard_points = !Keyboard::modifier_state_equals (event->button.state, Keyboard::PrimaryModifier); dynamic_cast<AutomationTimeAxisView*>(clicked_axisview)-> - add_automation_event (event, where, event->button.y); + add_automation_event (event, where, event->button.y, with_guard_points); return true; break; + } default: break; } |