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/tempo_dialog.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/tempo_dialog.cc')
-rw-r--r-- | gtk2_ardour/tempo_dialog.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/tempo_dialog.cc b/gtk2_ardour/tempo_dialog.cc index a969581369..5671ae4dda 100644 --- a/gtk2_ardour/tempo_dialog.cc +++ b/gtk2_ardour/tempo_dialog.cc @@ -289,7 +289,7 @@ MeterDialog::MeterDialog (TempoMap& map, framepos_t frame, const string&) : ArdourDialog (_("New Meter")) { Timecode::BBT_Time when; - frame = map.round_to_bar(frame,0); + frame = map.round_to_bar(frame, RoundNearest); Meter meter (map.meter_at(frame)); map.bbt_time (frame, when); |