OSC: logic thinko fix
authorLen Ovens <len@ovenwerks.net>
Thu, 8 Nov 2018 02:09:50 +0000 (18:09 -0800)
committerLen Ovens <len@ovenwerks.net>
Tue, 13 Nov 2018 06:30:32 +0000 (22:30 -0800)
libs/surfaces/osc/osc.cc

index aa76983fdc59f5fdde6a7c429fa0282093993b2c..da3c5ff169a11a74829a9a9c3fda9e09177f773e 100644 (file)
@@ -6349,15 +6349,17 @@ OSC::get_sorted_stripables(std::bitset<32> types, bool cue, uint32_t custom, Sor
                                sorted.push_back (s);
                        } else if (types[4] && boost::dynamic_pointer_cast<VCA>(s)) {
                                sorted.push_back (s);
-                       } else  if (types[7] && s->is_listenbus()) {
-                               sorted.push_back (s);
+                       } else  if (s->is_listenbus()) {
+                               if (types[7]) {
+                                       sorted.push_back (s);
+                               }
                        } else
 #ifdef MIXBUS
                        if (types[2] && Profile->get_mixbus() && s->mixbus()) {
                                sorted.push_back (s);
                        } else
 #endif
-                       if ((types[2] || types[3]) && boost::dynamic_pointer_cast<Route>(s) && !boost::dynamic_pointer_cast<Track>(s)) {
+                       if (boost::dynamic_pointer_cast<Route>(s) && !boost::dynamic_pointer_cast<Track>(s)) {
                                boost::shared_ptr<Route> r = boost::dynamic_pointer_cast<Route>(s);
                                if (!(s->presentation_info().flags() & PresentationInfo::MidiBus)) {
                                        // note some older sessions will show midibuses as busses