From 825bb4c3e7f222f19ae4e49cd4f013c2a1832fa8 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Wed, 14 May 2008 21:14:56 -0500 Subject: [PATCH] Don't die if render_tempomap() is called with an empty map. --- Timeline/Timeline.C | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Timeline/Timeline.C b/Timeline/Timeline.C index e1b36dd..2851a6e 100644 --- a/Timeline/Timeline.C +++ b/Timeline/Timeline.C @@ -473,6 +473,10 @@ Timeline::render_tempomap( nframes_t start, nframes_t length, measure_line_callb done: + if ( ! f ) + /* no points? */ + return pos; + pos.frame = f; pos.tempo = bpm; pos.beats_per_bar = sig.beats_per_bar;