13
0

Sanity check for TempoMap::get_grid ()

This commit is contained in:
nick_m 2016-09-04 04:19:34 +10:00
parent 921024b79f
commit dd7c0cca6c

View File

@ -3474,7 +3474,7 @@ TempoMap::get_grid (vector<TempoMap::BBTPoint>& points,
return; return;
} }
while (pos < upper) { while (pos >= 0 && pos < upper) {
pos = frame_at_beat_locked (_metrics, cnt); pos = frame_at_beat_locked (_metrics, cnt);
const TempoSection tempo = tempo_section_at_frame_locked (_metrics, pos); const TempoSection tempo = tempo_section_at_frame_locked (_metrics, pos);
const MeterSection meter = meter_section_at_frame_locked (_metrics, pos); const MeterSection meter = meter_section_at_frame_locked (_metrics, pos);