diff options
author | Carl Hetherington <carl@carlh.net> | 2011-11-13 16:28:20 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-11-13 16:28:20 +0000 |
commit | 28123e436dd138000bbbe2814c19d3b3bb53d76d (patch) | |
tree | 4ef474b8c0ea4f317d7edfdd2d7c4852c8098271 /gtk2_ardour/automation_time_axis.cc | |
parent | ef4ac379a330a6a26e4b2da575a2c0010bc41783 (diff) |
Snap new automation points on audio lanes (part of #4297).
git-svn-id: svn://localhost/ardour2/branches/3.0@10570 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_time_axis.cc')
-rw-r--r-- | gtk2_ardour/automation_time_axis.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index 4ba09120ad..7b44bac1d8 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -558,7 +558,7 @@ AutomationTimeAxisView::build_display_menu () } void -AutomationTimeAxisView::add_automation_event (ArdourCanvas::Item* /*item*/, GdkEvent* /*event*/, framepos_t when, double y) +AutomationTimeAxisView::add_automation_event (GdkEvent* event, framepos_t when, double y) { if (!_line) { return; @@ -578,6 +578,8 @@ AutomationTimeAxisView::add_automation_event (ArdourCanvas::Item* /*item*/, GdkE boost::shared_ptr<AutomationList> list = _line->the_list (); + _editor.snap_to_with_modifier (when, event); + _session->begin_reversible_command (_("add automation event")); XMLNode& before = list->get_state(); |