From b0a679a1af839b9894d48f857f4eaf9043aa784c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 10 Jan 2023 23:54:30 +0100 Subject: [PATCH] Fix grid after last tempo-marker when showing bars This is a copy/paste bug, compare to d77db816de2 --- libs/temporal/tempo.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/temporal/tempo.cc b/libs/temporal/tempo.cc index 65a1316eeb..8d428b221c 100644 --- a/libs/temporal/tempo.cc +++ b/libs/temporal/tempo.cc @@ -2184,7 +2184,7 @@ TempoMap::get_grid (TempoMapPoints& ret, superclock_t start, superclock_t end, u */ if (bar_mod != 0) { - if (bbt.is_bar() && (bar_mod == 1 || ((bbt.bars % bar_mod == 0)))) { + if (bbt.is_bar() && (bar_mod == 1 || ((bbt.bars % bar_mod == 1)))) { ret.push_back (TempoMapPoint (*this, metric, start, beats, bbt)); DEBUG_TRACE (DEBUG::Grid, string_compose ("GendA %1\t %2\n", metric, ret.back())); }