13
0

Add assert.

git-svn-id: svn://localhost/ardour2/branches/3.0@11119 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-12-30 20:05:40 +00:00
parent ccc93c4aef
commit 2c23ff8ceb

View File

@ -2430,7 +2430,7 @@ Evoral::MusicalTime
TempoMap::framewalk_to_beats (framepos_t pos, framecnt_t distance) const
{
Metrics::const_iterator i;
const TempoSection* tempo;
const TempoSection* tempo = 0;
/* Find the starting tempo */
@ -2447,6 +2447,8 @@ TempoMap::framewalk_to_beats (framepos_t pos, framecnt_t distance) const
}
}
assert (tempo);
/* We now have:
tempo -> the Tempo for "pos"