move mixbus-only variable declaration
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 26 Oct 2017 19:45:16 +0000 (15:45 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 26 Oct 2017 19:45:16 +0000 (15:45 -0400)
libs/surfaces/us2400/strip.cc

index 9071601620069668b647d06c213cf8016c4920c1..fb83a84715d9cc41d668bc60e2715c5318e553ac 100644 (file)
@@ -781,7 +781,6 @@ Strip::setup_trackview_vpot (boost::shared_ptr<Stripable> r)
                return;
        }
 
-       const uint32_t global_pos = _surface->mcp().global_index (*this);
 
        boost::shared_ptr<AutomationControl> pc;
        boost::shared_ptr<Track> track = boost::dynamic_pointer_cast<Track> (r);
@@ -790,6 +789,7 @@ Strip::setup_trackview_vpot (boost::shared_ptr<Stripable> r)
        _vpot->set_mode(Pot::wrap);
 
 #ifdef MIXBUS
+       const uint32_t global_pos = _surface->mcp().global_index (*this);
 
        //Trim & dynamics
        switch (global_pos) {