diff options
Diffstat (limited to 'libs/surfaces/osc/osc.cc')
-rw-r--r-- | libs/surfaces/osc/osc.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index 5fe8e25f41..fae9db11e1 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -3998,17 +3998,13 @@ OSC::get_sorted_stripables(std::bitset<32> types, bool cue) sorted.push_back (s); } } - } else - if (types[3] && (s->presentation_info().flags() & PresentationInfo::MidiBus)) { + } else if (types[3] && (s->presentation_info().flags() & PresentationInfo::MidiBus)) { sorted.push_back (s); - } else - if (types[4] && (s->presentation_info().flags() & PresentationInfo::VCA)) { + } else if (types[4] && (s->presentation_info().flags() & PresentationInfo::VCA)) { sorted.push_back (s); - } else - if (types[8] && (s->presentation_info().flags() & PresentationInfo::Selected)) { + } else if (types[8] && (s->is_selected())) { sorted.push_back (s); - } else - if (types[9] && (s->presentation_info().flags() & PresentationInfo::Hidden)) { + } else if (types[9] && (s->presentation_info().flags() & PresentationInfo::Hidden)) { sorted.push_back (s); } } |