mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
temporal: fix crash during reset_starting_at()
This commit is contained in:
parent
857856431e
commit
bf2618e97b
1 changed files with 2 additions and 1 deletions
|
|
@ -1162,14 +1162,15 @@ TempoMap::reset_starting_at (superclock_t sc)
|
||||||
|
|
||||||
Points::iterator pp = p;
|
Points::iterator pp = p;
|
||||||
nxt_tempo = 0;
|
nxt_tempo = 0;
|
||||||
|
++pp;
|
||||||
|
|
||||||
while (pp != _points.end()) {
|
while (pp != _points.end()) {
|
||||||
++pp;
|
|
||||||
TempoPoint* nt = dynamic_cast<TempoPoint*> (&*pp);
|
TempoPoint* nt = dynamic_cast<TempoPoint*> (&*pp);
|
||||||
if (nt) {
|
if (nt) {
|
||||||
nxt_tempo = nt;
|
nxt_tempo = nt;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
++pp;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tp->ramped() && nxt_tempo) {
|
if (tp->ramped() && nxt_tempo) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue