diff options
author | David Robillard <d@drobilla.net> | 2014-11-16 01:05:21 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-16 22:35:45 -0500 |
commit | fd9ccc7058cf7cfadbfa1dfb9676e2de3a14e1b0 (patch) | |
tree | b65c03818c9eded429651ca621773d728f9e1976 /gtk2_ardour/step_editor.cc | |
parent | 9c5e63bcc69290e1df84ea345b1899a241b7655e (diff) |
Use an enum for RoundMode instead of magic numbers.
No functional changes in this one (for easier auditing), but towards having
round up/down only if necessary modes, rather than kludging around that
situation with a double round as we do currently.
Diffstat (limited to 'gtk2_ardour/step_editor.cc')
-rw-r--r-- | gtk2_ardour/step_editor.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/step_editor.cc b/gtk2_ardour/step_editor.cc index 4665da348b..ef3caad5d1 100644 --- a/gtk2_ardour/step_editor.cc +++ b/gtk2_ardour/step_editor.cc @@ -398,7 +398,7 @@ StepEditor::step_edit_bar_sync () } framepos_t fpos = step_edit_region_view->region_beats_to_absolute_frames (step_edit_beat_pos); - fpos = _session->tempo_map().round_to_bar (fpos, 1); + fpos = _session->tempo_map().round_to_bar (fpos, RoundUpAlways); step_edit_beat_pos = ceil (step_edit_region_view->region_frames_to_region_beats (fpos - step_edit_region->position())); step_edit_region_view->move_step_edit_cursor (step_edit_beat_pos); } |