diff options
author | nick_m <mainsbridge@gmail.com> | 2016-12-29 01:39:31 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-12-29 01:39:31 +1100 |
commit | d0580ecfbc1182f3c57b4d04e514f1d944225f14 (patch) | |
tree | 12c6854fd3955f85f1e4a9064b2cc4ac9ae35c62 /gtk2_ardour/editor.cc | |
parent | 0869aa0f6c045bea9ae3b1a030570f27faa90358 (diff) |
allow all types of range location (loop, start, end etc.) to be glued to bars and beats.
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r-- | gtk2_ardour/editor.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 4ece70ec99..17ed10e68d 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -4756,7 +4756,7 @@ Editor::set_loop_range (framepos_t start, framepos_t end, string cmd) Location* tll; if ((tll = transport_loop_location()) == 0) { - Location* loc = new Location (*_session, start, end, _("Loop"), Location::IsAutoLoop); + Location* loc = new Location (*_session, start, end, _("Loop"), Location::IsAutoLoop, get_grid_music_divisions(0)); XMLNode &before = _session->locations()->get_state(); _session->locations()->add (loc, true); _session->set_auto_loop_location (loc); @@ -4783,7 +4783,7 @@ Editor::set_punch_range (framepos_t start, framepos_t end, string cmd) Location* tpl; if ((tpl = transport_punch_location()) == 0) { - Location* loc = new Location (*_session, start, end, _("Punch"), Location::IsAutoPunch); + Location* loc = new Location (*_session, start, end, _("Punch"), Location::IsAutoPunch, get_grid_music_divisions(0)); XMLNode &before = _session->locations()->get_state(); _session->locations()->add (loc, true); _session->set_auto_punch_location (loc); |