From b5c5a01fd970d49778e482035f6dda1fe26e9f48 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Wed, 14 May 2008 14:20:11 -0500 Subject: [PATCH] Fix measure line drawing. --- Timeline/Timeline.C | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Timeline/Timeline.C b/Timeline/Timeline.C index 72adfa6..59f9935 100644 --- a/Timeline/Timeline.C +++ b/Timeline/Timeline.C @@ -444,14 +444,16 @@ Timeline::render_tempomap( nframes_t start, nframes_t length, measure_line_callb ++bbt.bar; } - if ( f + frames_per_beat >= end ) - goto done; - else if ( f >= start ) + if ( f >= start ) { /* in the zone */ if ( cb ) cb( f, bbt, arg ); } + + if ( f + frames_per_beat >= end ) + goto done; + } }