From 1b2b3452cba03e47b2331aa2f6056c629e30487d Mon Sep 17 00:00:00 2001 From: Len Ovens Date: Wed, 7 Nov 2018 18:09:50 -0800 Subject: [PATCH] OSC: logic thinko fix --- libs/surfaces/osc/osc.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index aa76983fdc..da3c5ff169 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -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(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(s) && !boost::dynamic_pointer_cast(s)) { + if (boost::dynamic_pointer_cast(s) && !boost::dynamic_pointer_cast(s)) { boost::shared_ptr r = boost::dynamic_pointer_cast(s); if (!(s->presentation_info().flags() & PresentationInfo::MidiBus)) { // note some older sessions will show midibuses as busses -- 2.30.2