Fix reversed logic in legacy tempo secton detection
authornick_m <mainsbridge@gmail.com>
Thu, 8 Jun 2017 15:34:14 +0000 (01:34 +1000)
committernick_m <mainsbridge@gmail.com>
Thu, 8 Jun 2017 15:34:14 +0000 (01:34 +1000)
libs/ardour/tempo.cc

index c04f6803fd345fa45f8ddd844647b23b2d77831f..e676c274f471725b634618e39b110b4840fdaeb2 100644 (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.