13
0

There is always at least a tempo and meter section

This commit is contained in:
Robin Gareus 2019-08-20 04:29:06 +02:00
parent 6227dd5b04
commit 114b5088c7
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -4258,6 +4258,12 @@ TempoMap::tempo_section_at_beat_locked (const Metrics& metrics, const double& be
}
}
if (prev_t == 0) {
fatal << endmsg;
abort(); /*NOTREACHED*/
}
return *prev_t;
}
@ -4435,6 +4441,12 @@ TempoMap::meter_section_at_beat_locked (const Metrics& metrics, const double& be
}
}
if (prev_m == 0) {
fatal << endmsg;
abort(); /*NOTREACHED*/
}
return *prev_m;
}