There is always at least a tempo and meter section
This commit is contained in:
parent
6227dd5b04
commit
114b5088c7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user