Fix reversed logic in legacy tempo secton detection

This commit is contained in:
nick_m 2017-06-09 01:34:14 +10:00
parent e9f2e32b71
commit 2b320d51dd

View File

@ -206,7 +206,7 @@ TempoSection::TempoSection (const XMLNode& node, framecnt_t sample_rate)
}
TempoSection::Type old_type;
if (!node.get_property ("tempo-type", old_type)) {
if (node.get_property ("tempo-type", old_type)) {
/* sessions with a tempo-type node contain no end-beats-per-minute.
if the legacy node indicates a constant tempo, simply fill this in with the
start tempo. otherwise we need the next neighbour to know what it will be.