13
0

Fix grid after last tempo-marker when showing bars

This is a copy/paste bug, compare to d77db816de
This commit is contained in:
Robin Gareus 2023-01-10 23:54:30 +01:00
parent d322cfabdc
commit b0a679a1af
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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()));
}