Add assert.
git-svn-id: svn://localhost/ardour2/branches/3.0@11119 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ccc93c4aef
commit
2c23ff8ceb
@ -2430,7 +2430,7 @@ Evoral::MusicalTime
|
|||||||
TempoMap::framewalk_to_beats (framepos_t pos, framecnt_t distance) const
|
TempoMap::framewalk_to_beats (framepos_t pos, framecnt_t distance) const
|
||||||
{
|
{
|
||||||
Metrics::const_iterator i;
|
Metrics::const_iterator i;
|
||||||
const TempoSection* tempo;
|
const TempoSection* tempo = 0;
|
||||||
|
|
||||||
/* Find the starting tempo */
|
/* Find the starting tempo */
|
||||||
|
|
||||||
@ -2447,6 +2447,8 @@ TempoMap::framewalk_to_beats (framepos_t pos, framecnt_t distance) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert (tempo);
|
||||||
|
|
||||||
/* We now have:
|
/* We now have:
|
||||||
|
|
||||||
tempo -> the Tempo for "pos"
|
tempo -> the Tempo for "pos"
|
||||||
|
Loading…
Reference in New Issue
Block a user