summaryrefslogtreecommitdiff
path: root/libs/ardour/tempo.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-11-14 16:47:09 +0100
committerRobin Gareus <robin@gareus.org>2016-11-14 16:47:22 +0100
commit63f86b13145f466c22688ae36254bd460cf77855 (patch)
treea010cc72a49f0c9e31c7052840a794a2b29c9210 /libs/ardour/tempo.cc
parente4e2d92649cc25ab1f3ffd77312abc64be24e652 (diff)
Later code depends on prev_t not being NULL, use an assert()
Diffstat (limited to 'libs/ardour/tempo.cc')
-rw-r--r--libs/ardour/tempo.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc
index 1481f40bc9..d800eb6f60 100644
--- a/libs/ardour/tempo.cc
+++ b/libs/ardour/tempo.cc
@@ -3260,7 +3260,9 @@ TempoMap::gui_dilate_tempo (TempoSection* ts, const framepos_t& frame, const fra
TempoSection* prev_to_prev_t = 0;
const frameoffset_t fr_off = end_frame - frame;
- if (prev_t && prev_t->pulse() > 0.0) {
+ assert (prev_t);
+
+ if (prev_t->pulse() > 0.0) {
prev_to_prev_t = const_cast<TempoSection*>(&tempo_section_at_minute_locked (future_map, minute_at_frame (prev_t->frame() - 1)));
}