Skip to content

Commit

Permalink
Merge pull request #3257 from Jojo-Schmitz/select-by-voice-2.2
Browse files Browse the repository at this point in the history
Fix #239021: Enable all elements to be selectable by voice
  • Loading branch information
lasconic committed Aug 1, 2017
2 parents 4ac514e + 9967cdc commit 57f7a81
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions libmscore/score.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3073,14 +3073,10 @@ void Score::collectMatch(void* data, Element* e)
if ((p->staffStart != -1)
&& ((p->staffStart > e->staffIdx()) || (p->staffEnd <= e->staffIdx())))
return;
if (e->type() == Element::Type::CHORD || e->type() == Element::Type::REST
|| e->type() == Element::Type::ARTICULATION || e->type() == Element::Type::ACCIDENTAL || e->type() == Element::Type::LYRICS
|| e->type() == Element::Type::BEAM || e->type() == Element::Type::HOOK || e->type() == Element::Type::STEM
|| e->type() == Element::Type::SLUR_SEGMENT || e->type() == Element::Type::NOTEDOT
|| e->type() == Element::Type::FINGERING || e->type() == Element::Type::TUPLET) {
if (p->voice != -1 && p->voice != e->voice())
return;
}

if (p->voice != -1 && p->voice != e->voice())
return;

if (p->system) {
Element* ee = e;
do {
Expand Down

0 comments on commit 57f7a81

Please sign in to comment.