summaryrefslogtreecommitdiff
path: root/libs/ardour/tempo.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2017-02-25 06:59:05 +1100
committerRobin Gareus <robin@gareus.org>2017-02-27 20:16:10 +0100
commit8b1baa2406d904f14200ae58b6fa26fd94bcb2c1 (patch)
treeaf84055de2fcebf30940dd1c3a7cce9fcab00285 /libs/ardour/tempo.cc
parentccb51a8ddbecd2fe3d6847d85b3a4ba1f55d3ef1 (diff)
correct (?) behaviour of TempoMap::replace_tempo
Diffstat (limited to 'libs/ardour/tempo.cc')
-rw-r--r--libs/ardour/tempo.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc
index 6c0032a673..b1fec3c1ee 100644
--- a/libs/ardour/tempo.cc
+++ b/libs/ardour/tempo.cc
@@ -1155,12 +1155,10 @@ TempoMap::replace_tempo (TempoSection& ts, const Tempo& tempo, const double& pul
bool const lm = new_ts->locked_to_meter();
if ((ipm && this_t->pulse() > new_ts->pulse()) || (!ipm && this_t->frame() > new_ts->frame())
|| (lm && this_t->pulse() > new_ts->pulse())) {
- //if (prev_tempo && prev_tempo->type() == TempoSection::Ramp) {
- new_ts->set_end_note_types_per_minute (this_t->note_types_per_minute());
- //}
+ new_ts->set_end_note_types_per_minute (tempo.end_note_types_per_minute());
+
break;
}
- //prev_tempo = this_t;
}
}
}