13
0

Fix the case of jump-to-next{prev}-Bar

This commit is contained in:
Ben Loftis 2016-12-19 17:00:58 -06:00
parent 6ebf14c2c2
commit 22bc091c37

View File

@ -3888,6 +3888,8 @@ TempoMap::round_to_type (framepos_t frame, RoundMode dir, BBTPointType type)
case Bar: case Bar:
if (dir < 0) { if (dir < 0) {
/* find bar previous to 'frame' */ /* find bar previous to 'frame' */
if (bbt.bars > 0)
--bbt.bars;
bbt.beats = 1; bbt.beats = 1;
bbt.ticks = 0; bbt.ticks = 0;
return frame_at_minute (minute_at_bbt_locked (_metrics, bbt)); return frame_at_minute (minute_at_bbt_locked (_metrics, bbt));