mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 20:29:35 +01:00
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
This commit is contained in:
parent
ef4ac379a3
commit
28123e436d
4 changed files with 8 additions and 4 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue