diff options
author | nick_m <mainsbridge@gmail.com> | 2016-09-04 04:19:34 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-09-04 04:19:34 +1000 |
commit | dd7c0cca6c749a2177212e9a7b3dd4eca5e5dd74 (patch) | |
tree | 01a37168bdb41e133becbcca3db9b7865fd99fa7 /libs/ardour/tempo.cc | |
parent | 921024b79fb9e8541e1fdfc421979038510bcf63 (diff) |
Sanity check for TempoMap::get_grid ()
Diffstat (limited to 'libs/ardour/tempo.cc')
-rw-r--r-- | libs/ardour/tempo.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc index 4257767458..41a8f91ec5 100644 --- a/libs/ardour/tempo.cc +++ b/libs/ardour/tempo.cc @@ -3474,7 +3474,7 @@ TempoMap::get_grid (vector<TempoMap::BBTPoint>& points, return; } - while (pos < upper) { + while (pos >= 0 && pos < upper) { pos = frame_at_beat_locked (_metrics, cnt); const TempoSection tempo = tempo_section_at_frame_locked (_metrics, pos); const MeterSection meter = meter_section_at_frame_locked (_metrics, pos); |