summaryrefslogtreecommitdiff
path: root/libs/ardour/tempo.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2016-12-19 17:00:58 -0600
committerBen Loftis <ben@harrisonconsoles.com>2016-12-19 17:25:59 -0600
commit22bc091c3766587cd9e909c00c16e201630ac278 (patch)
tree02bc23a0aacc7ee7510780048229e1b553d8e3d2 /libs/ardour/tempo.cc
parent6ebf14c2c2e37e652837e6f387133e866d9d1b39 (diff)
Fix the case of jump-to-next{prev}-Bar
Diffstat (limited to 'libs/ardour/tempo.cc')
-rw-r--r--libs/ardour/tempo.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc
index af2b8b2dbf..995eb56798 100644
--- a/libs/ardour/tempo.cc
+++ b/libs/ardour/tempo.cc
@@ -3888,6 +3888,8 @@ TempoMap::round_to_type (framepos_t frame, RoundMode dir, BBTPointType type)
case Bar:
if (dir < 0) {
/* find bar previous to 'frame' */
+ if (bbt.bars > 0)
+ --bbt.bars;
bbt.beats = 1;
bbt.ticks = 0;
return frame_at_minute (minute_at_bbt_locked (_metrics, bbt));