From 22bc091c3766587cd9e909c00c16e201630ac278 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Mon, 19 Dec 2016 17:00:58 -0600 Subject: [PATCH] Fix the case of jump-to-next{prev}-Bar --- libs/ardour/tempo.cc | 2 ++ 1 file changed, 2 insertions(+) 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));