From 260db3ee9ae327d895f3f20580d593d47492f730 Mon Sep 17 00:00:00 2001 From: nick_m Date: Tue, 5 Apr 2016 00:39:48 +1000 Subject: [PATCH] Tempo ramps - restrict legacy session handling to legacy sessions.. --- libs/ardour/tempo.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc index 19e2dc5b70..5afca564dc 100644 --- a/libs/ardour/tempo.cc +++ b/libs/ardour/tempo.cc @@ -2850,7 +2850,7 @@ TempoMap::set_state (const XMLNode& node, int /*version*/) MeterSection* prev_m = 0; TempoSection* prev_t = 0; - if ((m = dynamic_cast(*i)) != 0) { + if ((m = dynamic_cast(*i)) != 0 && m->pulse() < 0.0) { if (!m->movable()) { pair bbt = make_pair (0.0, BBT_Time (1, 1, 0)); m->set_beat (bbt); @@ -2873,7 +2873,7 @@ TempoMap::set_state (const XMLNode& node, int /*version*/) m->set_pulse (start_beat / prev_m->note_divisor()); } prev_m = m; - } else if ((t = dynamic_cast(*i)) != 0) { + } else if ((t = dynamic_cast(*i)) != 0 && t->pulse() < 0.0) { if (!t->active()) { continue; }