projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4e2d92
)
Later code depends on prev_t not being NULL, use an assert()
author
Robin Gareus
<robin@gareus.org>
Mon, 14 Nov 2016 15:47:09 +0000
(16:47 +0100)
committer
Robin Gareus
<robin@gareus.org>
Mon, 14 Nov 2016 15:47:22 +0000
(16:47 +0100)
libs/ardour/tempo.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/tempo.cc
b/libs/ardour/tempo.cc
index 1481f40bc9018378c8caf8095e12643e3027bd12..d800eb6f6083fa029f44e989ae604a9c590a690d 100644
(file)
--- 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)));
}