Don't die if render_tempomap() is called with an empty map.

This commit is contained in:
Jonathan Moore Liles 2008-05-14 21:14:56 -05:00
parent 71c75ff48a
commit 825bb4c3e7
1 changed files with 4 additions and 0 deletions

View File

@ -473,6 +473,10 @@ Timeline::render_tempomap( nframes_t start, nframes_t length, measure_line_callb
done: done:
if ( ! f )
/* no points? */
return pos;
pos.frame = f; pos.frame = f;
pos.tempo = bpm; pos.tempo = bpm;
pos.beats_per_bar = sig.beats_per_bar; pos.beats_per_bar = sig.beats_per_bar;